Dotclear


Ignore:
Timestamp:
01/02/17 17:03:59 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch from functions to closures (PHP 5.3+), fix available favorites order

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/help.php

    r2720 r3491  
    1515dcPage::check('usage'); 
    1616 
    17 function helpPage() 
     17$helpPage = function() 
    1818{ 
    1919     $ret = array('content' => '', 'title' => ''); 
     
    6666     } 
    6767     return $ret; 
    68 } 
     68}; 
    6969 
    7070$help_page = !empty($_GET['page']) ? html::escapeHTML($_GET['page']) : 'index'; 
    71 $content_array = helpPage($help_page); 
     71$content_array = $helpPage($help_page); 
    7272if (($content_array['content'] == '') || ($help_page == 'index')) { 
    73      $content_array = helpPage('index'); 
     73     $content_array = $helpPage('index'); 
    7474} 
    7575if ($content_array['title'] != '') { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map