Dotclear


Ignore:
Timestamp:
11/26/14 17:45:15 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Using dcAdminURL, work in progress on core : auto-update must be tested BEFORE 2.7 release !

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.moduleslist.php

    r2631 r2817  
    3939     protected $path_pattern = false;   /**< @var string    Directory pattern to work on */ 
    4040 
    41      protected $page_url = 'plugins.php';    /**< @var string    Page URL */ 
     41     protected $page_url = '';                    /**< @var string    Page URL */ 
    4242     protected $page_qs = '?';                    /**< @var string    Page query string */ 
    4343     protected $page_tab = '';                    /**< @var string    Page tab */ 
     
    6565          $this->modules = $modules; 
    6666          $this->store = new dcStore($modules, $xml_url); 
     67 
     68          $this->page_url = $this->core->adminurl->get('admin.plugins'); 
    6769 
    6870          $this->setPath($modules_root); 
     
    618620                    '<td class="module-icon nowrap">'.sprintf( 
    619621                         '<img alt="%1$s" title="%1$s" src="%2$s" />', 
    620                          html::escapeHTML($id), file_exists($module['root'].'/icon.png') ? 'index.php?pf='.$id.'/icon.png' : 'images/module.png' 
     622                         html::escapeHTML($id), file_exists($module['root'].'/icon.png') ? 
     623                         $this->core->adminurl->decode('load.plugin.file',array('pf' => $id.'/icon.png')) : 'images/module.png' 
    621624                    ).'</td>'; 
    622625               } 
     
    13731376class adminThemesList extends adminModulesList 
    13741377{ 
    1375      protected $page_url = 'blog_theme.php'; 
     1378     /** 
     1379      * Constructor. 
     1380      * 
     1381      * Note that this creates dcStore instance. 
     1382      * 
     1383      * @param object    $modules       dcModules instance 
     1384      * @param string    $modules_root  Modules root directories 
     1385      * @param string    $xml_url       URL of modules feed from repository 
     1386      */ 
     1387     public function __construct(dcModules $modules, $modules_root, $xml_url) 
     1388     { 
     1389          parent::__construct($modules, $modules_root, $xml_url); 
     1390          $this->page_url = $this->core->adminurl->get('admin.blog.theme'); 
     1391     } 
    13761392 
    13771393     public function displayModules($cols=array('name', 'config', 'version', 'desc'), $actions=array(), $nav_limit=false) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map