Changeset 28837


Ignore:
Timestamp:
Jun 29, 2014, 4:18:27 PM (10 years ago)
Author:
mistic100
Message:

use new maintain class

Location:
extensions/Comments_on_Albums/trunk
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Comments_on_Albums/trunk/main.inc.php

    r26089 r28837  
    1818global $prefixeTable;
    1919
    20 
    21 define('COA_ID',      basename(dirname(__FILE__)));
    22 define('COA_PATH' ,   PHPWG_PLUGINS_PATH . COA_ID . '/');
    23 define('COA_TABLE' ,  $prefixeTable . 'comments_categories');
    24 define('COA_ADMIN',   get_root_url().'admin.php?page=plugin-' . COA_ID);
    25 define('COA_VERSION', 'auto');
     20define('COA_ID',     basename(dirname(__FILE__)));
     21define('COA_PATH' ,  PHPWG_PLUGINS_PATH . COA_ID . '/');
     22define('COA_TABLE' , $prefixeTable . 'comments_categories');
     23define('COA_ADMIN',  get_root_url().'admin.php?page=plugin-' . COA_ID);
    2624
    2725
    2826add_event_handler('init', 'coa_init');
    2927
     28
    3029function coa_init()
    3130{
    32   global $user, $conf, $pwg_loaded_plugins;
    33 
    34   include_once(COA_PATH . 'maintain.inc.php');
    35   $maintain = new Comments_on_Albums_maintain(COA_ID);
    36   $maintain->autoUpdate(COA_VERSION, 'install');
     31  global $user, $conf;
    3732
    3833  // luciano doesn't use comments
Note: See TracChangeset for help on using the changeset viewer.