Changeset 28845


Ignore:
Timestamp:
06/29/14 16:24:03 (5 years ago)
Author:
mistic100
Message:

use new maintain class

Location:
extensions/linked_pages
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/linked_pages/main.inc.php

    r27042 r28845  
    1818global $prefixeTable; 
    1919 
    20 // +-----------------------------------------------------------------------+ 
    21 // | Define plugin constants                                               | 
    22 // +-----------------------------------------------------------------------+ 
    23 define('LINKEDPAGES_ID',      basename(dirname(__FILE__))); 
    24 define('LINKEDPAGES_PATH' ,   PHPWG_PLUGINS_PATH . LINKEDPAGES_ID . '/'); 
    25 define('LINKEDPAGES_TABLE',   $prefixeTable . 'linked_pages'); 
    26 define('LINKEDPAGES_ADMIN',   get_root_url() . 'admin.php?page=plugin-' . LINKEDPAGES_ID); 
    27 define('LINKEDPAGES_VERSION', 'auto'); 
     20define('LINKEDPAGES_ID',    basename(dirname(__FILE__))); 
     21define('LINKEDPAGES_PATH' , PHPWG_PLUGINS_PATH . LINKEDPAGES_ID . '/'); 
     22define('LINKEDPAGES_TABLE', $prefixeTable . 'linked_pages'); 
     23define('LINKEDPAGES_ADMIN', get_root_url() . 'admin.php?page=plugin-' . LINKEDPAGES_ID); 
    2824 
    2925 
    30 // init the plugin 
    3126add_event_handler('init', 'linked_pages_init'); 
    3227 
    3328 
    34 /** 
    35  * plugin initialization 
    36  */ 
    3729function linked_pages_init() 
    3830{ 
     
    4335    return; 
    4436  } 
    45    
    46   include_once(LINKEDPAGES_PATH . 'maintain.inc.php'); 
    47   $maintain = new linked_pages_maintain(LINKEDPAGES_ID); 
    48   $maintain->autoUpdate(LINKEDPAGES_VERSION, 'install'); 
    4937   
    5038  // add event handlers 
Note: See TracChangeset for help on using the changeset viewer.