Changeset 28833


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

use new maintain class

Location:
extensions/flickr2piwigo
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/admin/config.php

    r26180 r28833  
    99    ); 
    1010  unset($_SESSION['phpFlickr_auth_token']); 
    11   conf_update_param('flickr2piwigo', serialize($conf['flickr2piwigo'])); 
     11 
     12  conf_update_param('flickr2piwigo', $conf['flickr2piwigo']); 
    1213  $page['infos'][] = l10n('Information data registered in database'); 
    1314} 
  • extensions/flickr2piwigo/main.inc.php

    r26180 r28833  
    1717define('FLICKR_ADMIN',    get_root_url() . 'admin.php?page=plugin-' . FLICKR_ID); 
    1818define('FLICKR_FS_CACHE', PHPWG_ROOT_PATH . $conf['data_location'] . 'flickr_cache/'); 
    19 define('FLICKR_VERSION',  'auto'); 
    20  
    2119 
    2220include_once(FLICKR_PATH . 'include/ws_functions.inc.php'); 
    2321 
    2422 
    25 add_event_handler('init', 'flickr_init'); 
     23$conf['flickr2piwigo'] = safe_unserialize($conf['flickr2piwigo']); 
     24 
     25 
    2626add_event_handler('ws_add_methods', 'flickr_add_ws_method'); 
    2727 
     
    6666  } 
    6767} 
    68  
    69  
    70 function flickr_init() 
    71 { 
    72   global $conf; 
    73   include_once(FLICKR_PATH . 'maintain.inc.php'); 
    74   $maintain = new flickr2piwigo_maintain(FLICKR_ID); 
    75   $maintain->autoUpdate(FLICKR_VERSION, 'install'); 
    76  
    77   $conf['flickr2piwigo'] = unserialize($conf['flickr2piwigo']); 
    78 } 
Note: See TracChangeset for help on using the changeset viewer.