Ignore:
Timestamp:
May 27, 2012, 2:06:02 PM (13 years ago)
Author:
grum
Message:

feature:2640 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Histogram/hgram_aip.class.inc.php

    r8509 r15346  
    3939    $this->tabsheet->add('config',
    4040                          l10n('hgram_config'),
    41                           $this->getAdminLink()."&f_tabsheet=config");
     41                          $this->getAdminLink()."-config");
    4242  }
    4343
     
    5454  {
    5555    parent::initEvents();
    56     if($_REQUEST['f_tabsheet']=='search')
     56    if($_GET['tab']=='search')
    5757    {
    5858      // load request builder JS only on the search page
     
    7272    $template->set_filename('plugin_admin_content', dirname(__FILE__)."/admin/hgram_admin.tpl");
    7373
    74     switch($_REQUEST['f_tabsheet'])
     74    switch($_GET['tab'])
    7575    {
    7676      case 'config':
     
    7979    }
    8080
    81     $this->tabsheet->select($_REQUEST['f_tabsheet']);
     81    $this->tabsheet->select($_GET['tab']);
    8282    $this->tabsheet->assign();
    8383    $selected_tab=$this->tabsheet->get_selected();
     
    9797  protected function checkRequest()
    9898  {
    99     if(!isset($_REQUEST['f_tabsheet'])) $_REQUEST['f_tabsheet']='config';
     99    if(!isset($_GET['tab'])) $_GET['tab']='config';
    100100
    101     if(!($_REQUEST['f_tabsheet']=='config')) $_REQUEST['f_tabsheet']='config';
     101    if(!($_GET['tab']=='config')) $_GET['tab']='config';
    102102  }
    103103
Note: See TracChangeset for help on using the changeset viewer.