Changeset 29854


Ignore:
Timestamp:
Oct 1, 2014, 2:08:06 PM (10 years ago)
Author:
plg
Message:

compatible with Piwigo 2.7

Location:
extensions/AddUsersNotes
Files:
1 edited
1 moved

Legend:

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

    r27697 r29854  
    1919define('USERNOTES_ID', basename(dirname(__FILE__)));
    2020define('USERNOTES_PATH', PHPWG_PLUGINS_PATH.USERNOTES_ID.'/');
    21 define('USERNOTES_VERSION', 'auto');
    2221
    2322// init the plugin
     
    3130function usernotes_init()
    3231{
    33   // apply upgrade if needed
    34   include_once(USERNOTES_PATH.'maintain.inc.php');
    35   $maintain = new AddUsersNotes_maintain(USERNOTES_ID);
    36   $maintain->autoUpdate(USERNOTES_VERSION, 'install');
    37  
    3832  // load plugin language file
    3933  load_language('plugin.lang', USERNOTES_PATH);
  • extensions/AddUsersNotes/maintain.class.php

    r29853 r29854  
    5050  }
    5151
     52  function update($old_version, $new_version, &$errors=array())
     53  {
     54    $this->install($new_version, $errors);
     55  }
     56 
    5257  function deactivate()
    5358  {
Note: See TracChangeset for help on using the changeset viewer.