Changeset 25407 for extensions/skeleton/trunk/main.inc.php
- Timestamp:
- Nov 9, 2013, 12:33:50 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/skeleton/trunk/main.inc.php
r24182 r25407 23 23 // | Define plugin constants | 24 24 // +-----------------------------------------------------------------------+ 25 define d('SKELETON_ID') or define('SKELETON_ID',basename(dirname(__FILE__)));25 define('SKELETON_ID', basename(dirname(__FILE__))); 26 26 define('SKELETON_PATH' , PHPWG_PLUGINS_PATH . SKELETON_ID . '/'); 27 27 define('SKELETON_TABLE', $prefixeTable . 'skeleton'); … … 106 106 107 107 108 109 108 /** 110 109 * plugin initialization … … 115 114 function skeleton_init() 116 115 { 117 global $conf , $pwg_loaded_plugins;116 global $conf; 118 117 119 118 // apply upgrade if needed 120 include_once(SKELETON_PATH . 'include/install.inc.php'); 121 request_plugin_update(SKELETON_ID, SKELETON_VERSION, 'skeleton_install'); 119 include_once(SKELETON_PATH . 'maintain.inc.php'); 120 $maintain = new skeleton_maintain(SKELETON_ID); 121 $maintain->autoUpdate(SKELETON_VERSION, 'install'); 122 122 123 123 // load plugin language file
Note: See TracChangeset
for help on using the changeset viewer.