Ignore:
Timestamp:
May 27, 2012, 1:34:26 PM (12 years ago)
Author:
grum
Message:

feature:2639 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ColorStat/cstat_aip.class.inc.php

    r8544 r15344  
    3737    $this->tabsheet->add('database',
    3838                          l10n('cstat_database'),
    39                           $this->getAdminLink()."&f_tabsheet=database");
     39                          $this->getAdminLink()."-database");
    4040    $this->tabsheet->add('stat',
    4141                          l10n('cstat_stat'),
    42                           $this->getAdminLink()."&f_tabsheet=stat");
     42                          $this->getAdminLink()."-stat");
    4343    $this->tabsheet->add('search',
    4444                          l10n('cstat_search'),
    45                           $this->getAdminLink()."&f_tabsheet=search");
     45                          $this->getAdminLink()."-search");
    4646    $this->tabsheet->add('config',
    4747                          l10n('cstat_config'),
    48                           $this->getAdminLink()."&f_tabsheet=config");
     48                          $this->getAdminLink()."-config");
    4949  }
    5050
     
    6161  {
    6262    parent::initEvents();
    63     if($_REQUEST['f_tabsheet']=='search')
     63    if($_GET['tab']=='search')
    6464    {
    6565      // load request builder JS only on the search page
     
    8181    $template->set_filename('plugin_admin_content', dirname(__FILE__)."/admin/cstat_admin.tpl");
    8282
    83 
    84     switch($_REQUEST['f_tabsheet'])
     83    switch($_GET['tab'])
    8584    {
    8685      case 'database':
     
    9897    }
    9998
    100     $this->tabsheet->select($_REQUEST['f_tabsheet']);
     99    $this->tabsheet->select($_GET['tab']);
    101100    $this->tabsheet->assign();
    102101    $selected_tab=$this->tabsheet->get_selected();
     
    152151  protected function checkRequest()
    153152  {
    154     if(!isset($_REQUEST['f_tabsheet'])) $_REQUEST['f_tabsheet']='stat';
    155 
    156 
    157     if(!($_REQUEST['f_tabsheet']=='database' or
    158          $_REQUEST['f_tabsheet']=='stat' or
    159          $_REQUEST['f_tabsheet']=='search' or
    160          $_REQUEST['f_tabsheet']=='config')) $_REQUEST['f_tabsheet']='stat';
     153    if(!isset($_GET['tab'])) $_GET['tab']='stat';
     154
     155
     156    if(!($_GET['tab']=='database' or
     157         $_GET['tab']=='stat' or
     158         $_GET['tab']=='search' or
     159         $_GET['tab']=='config')) $_GET['tab']='stat';
    161160
    162161
Note: See TracChangeset for help on using the changeset viewer.