Dotclear

Changeset 2261:e7aa9cffbc30


Ignore:
Timestamp:
10/04/13 18:11:26 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
dcRepo
Children:
2267:e59137433afb, 2268:daa30c459777
Parents:
2259:6aaea2c2e0f7 (diff), 2260:592e42e0b7fb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge

Files:
2 edited

Legend:

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

    r2259 r2261  
    12101210               if ($has_details || $has_support) { 
    12111211                    $line .= 
    1212                     '<span class="mod-more">'.__('Help:').' '; 
     1212                    '<span class="mod-more">'; 
    12131213 
    12141214                    if ($has_details) { 
     
    12451245                    } 
    12461246 
     1247                    $line .= '<div class="current-actions">'; 
     1248 
    12471249                    if (file_exists(path::real($this->core->blog->themes_path.'/'.$id).'/_config.php')) { 
    12481250                         $line .=  
     
    12531255                    $line .=  
    12541256                    $this->core->callBehavior('adminCurrentThemeDetails', $this->core, $id, $module); 
     1257 
     1258                    $line .= '</div>'; 
    12551259               } 
    12561260 
  • inc/admin/lib.moduleslist.php

    r2260 r2261  
    4242     protected $page_qs = '?';                    /**< @var string    Page query string */ 
    4343     protected $page_tab = '';                    /**< @var string    Page tab */ 
     44     protected $page_redir = '';                  /**< @var string    Page redirection */ 
    4445 
    4546     public static $nav_indexes = 'abcdefghijklmnopqrstuvwxyz0123456789'; /**< @var  string    Index list */ 
     
    203204     { 
    204205          return $this->page_tab; 
     206     } 
     207 
     208     /** 
     209      * Set page redirection. 
     210      * 
     211      * @param string    $default       Default redirection 
     212      * @return     adminModulesList self instance 
     213      */ 
     214     public function setRedir($default='') 
     215     { 
     216          $this->page_redir = empty($_REQUEST['redir']) ? $default : $_REQUEST['redir']; 
     217 
     218          return $this; 
     219     } 
     220 
     221     /** 
     222      * Get page redirection. 
     223      * 
     224      * @return     Page redirection 
     225      */ 
     226     public function getRedir() 
     227     { 
     228          return empty($this->page_redir) ? $this->getURL() : $this->page_redir; 
    205229     } 
    206230     //@} 
     
    10041028               return null; 
    10051029          } 
     1030          $this->setRedir($this->getURL().'#plugins'); 
    10061031 
    10071032          ob_start(); 
     
    10361061     { 
    10371062          if ($this->config_file) { 
    1038                $redir = empty($_REQUEST['redir']) ? $this->getURL().'#plugins' : $_REQUEST['redir']; 
    10391063 
    10401064               if (!$this->config_module['standalone_config']) { 
     
    10421066                    '<form id="module_config" action="'.$this->getURL('conf=1').'" method="post" enctype="multipart/form-data">'. 
    10431067                    '<h3>'.sprintf(__('Configure plugin "%s"'), html::escapeHTML($this->config_module['name'])).'</h3>'. 
    1044                     '<p><a class="back" href="'.$redir.'">'.__('Back').'</a></p>'; 
     1068                    '<p><a class="back" href="'.$this->getRedir().'">'.__('Back').'</a></p>'; 
    10451069               } 
    10461070 
     
    10511075                    '<p class="clear"><input type="submit" name="save" value="'.__('Save').'" />'. 
    10521076                    form::hidden('module', $this->config_module['id']). 
    1053                     form::hidden('redir', $redir). 
     1077                    form::hidden('redir', $this->getRedir()). 
    10541078                    $this->core->formNonce().'</p>'. 
    10551079                    '</form>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map