Changeset 29854 for extensions/AddUsersNotes
- Timestamp:
- Oct 1, 2014, 2:08:06 PM (10 years ago)
- Location:
- extensions/AddUsersNotes
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/AddUsersNotes/main.inc.php
r27697 r29854 19 19 define('USERNOTES_ID', basename(dirname(__FILE__))); 20 20 define('USERNOTES_PATH', PHPWG_PLUGINS_PATH.USERNOTES_ID.'/'); 21 define('USERNOTES_VERSION', 'auto');22 21 23 22 // init the plugin … … 31 30 function usernotes_init() 32 31 { 33 // apply upgrade if needed34 include_once(USERNOTES_PATH.'maintain.inc.php');35 $maintain = new AddUsersNotes_maintain(USERNOTES_ID);36 $maintain->autoUpdate(USERNOTES_VERSION, 'install');37 38 32 // load plugin language file 39 33 load_language('plugin.lang', USERNOTES_PATH); -
extensions/AddUsersNotes/maintain.class.php
r29853 r29854 50 50 } 51 51 52 function update($old_version, $new_version, &$errors=array()) 53 { 54 $this->install($new_version, $errors); 55 } 56 52 57 function deactivate() 53 58 {
Note: See TracChangeset
for help on using the changeset viewer.