Ignore:
Timestamp:
Jan 31, 2011, 10:37:30 AM (13 years ago)
Author:
grum
Message:

release 3.0.0
fix bug on random picture display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_root.class.inc.php

    r8989 r9002  
    647647  static public function checkPluginRelease()
    648648  {
    649     global $template;
    650 
    651     $config=Array();
    652     GPCCore::loadConfig('amm', $config);
    653 
    654     if($config['installed']!=AMM_VERSION2)
     649    global $template, $prefixeTable, $conf;
     650
     651
     652    if($conf['amm_config']['installed']!=AMM_VERSION2)
    655653    {
    656654      /* the plugin was updated without being deactivated
     
    661659      $amm->deactivate();
    662660      $amm->activate();
    663       $template->delete_compiled_templates();
     661      if(is_object($template)) $template->delete_compiled_templates();
    664662    }
    665663  }
Note: See TracChangeset for help on using the changeset viewer.