Changeset 28835


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

use new maintain class

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

Legend:

Unmodified
Added
Removed
  • extensions/bbcode_bar/admin.php

    r26076 r28835  
    1212  } 
    1313   
    14   conf_update_param('bbcode_bar', serialize($conf['bbcode_bar'])); 
     14  conf_update_param('bbcode_bar', $conf['bbcode_bar']); 
    1515  $page['infos'][] = l10n('Information data registered in database'); 
    1616} 
  • extensions/bbcode_bar/main.inc.php

    r26076 r28835  
    1010defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 
    1111 
    12 define('BBCODE_ID' ,    basename(dirname(__FILE__))); 
    13 define('BBCODE_PATH' ,    PHPWG_PLUGINS_PATH . BBCODE_ID . '/'); 
    14 define('BBCODE_ADMIN',    get_root_url() . 'admin.php?page=plugin-' . BBCODE_ID); 
    15 define('BBCODE_VERSION',  'auto'); 
    16  
     12define('BBCODE_ID' ,   basename(dirname(__FILE__))); 
     13define('BBCODE_PATH' , PHPWG_PLUGINS_PATH . BBCODE_ID . '/'); 
     14define('BBCODE_ADMIN', get_root_url() . 'admin.php?page=plugin-' . BBCODE_ID); 
    1715 
    1816include_once(BBCODE_PATH.'include/functions.inc.php'); 
     
    3937  global $conf; 
    4038   
    41   include_once(BBCODE_PATH . 'maintain.inc.php'); 
    42   $maintain = new bbcode_bar_maintain(BBCODE_ID); 
    43   $maintain->autoUpdate(BBCODE_VERSION, 'install'); 
    44    
    45   $conf['bbcode_bar'] = unserialize($conf['bbcode_bar']); 
     39  $conf['bbcode_bar'] = safe_unserialize($conf['bbcode_bar']); 
    4640  $conf['bbcode_bar_codes'] = array('b','i','u','s','p','center','right','quote','ul','ol','img','url','email','size','color'); 
    4741   
Note: See TracChangeset for help on using the changeset viewer.