Ignore:
Timestamp:
May 27, 2012, 9:50:54 AM (12 years ago)
Author:
grum
Message:

feature:2436 - Compatibility with Piwigo 2.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/CommonPlugin.class.inc.php

    r8961 r15340  
    129129    $this->fileLocation=$filelocation;
    130130    $this->prefixeTable=$prefixeTable;
    131     $this->page_link="admin.php?page=plugin&section=".basename(dirname($this->getFileLocation()))."/admin/".$this->plugin_admin_file.".php";
     131    $this->page_link=get_root_url().'admin.php?page=plugin-'.basename(dirname($this->getFileLocation()));
     132    //$this->page_link="admin.php?page=plugin&section=".basename(dirname($this->getFileLocation()))."/admin/".$this->plugin_admin_file.".php";
    132133    $this->initConfig();
    133134    $this->displayResult_ok="OK";
     
    253254  public function pluginAdminMenu($menu)
    254255  {
     256    array_push(
     257      $menu,
     258      array(
     259        'NAME' => $this->plugin_name,
     260        'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname($this->getFileLocation()))
     261        )
     262    );
     263    /*
    255264    array_push($menu,
    256265               array(
     
    258267                  'URL' => get_admin_plugin_menu_link(dirname($this->getFileLocation()).
    259268                                '/admin/'.$this->plugin_admin_file.'.php')
    260                    ));
     269                   ));*/
    261270    return $menu;
    262271  }
Note: See TracChangeset for help on using the changeset viewer.