Dotclear


Ignore:
Timestamp:
09/17/13 21:03:30 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add access to global help when no contextual help is available, addresses #1244

Location:
inc/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r1927 r1933  
    182182          global $core; 
    183183 
     184          if (!$GLOBALS['__resources']['ctxhelp']) { 
     185               // Displau global help link in any contextual help displayed 
     186               echo 
     187               '<p id="help-button"><a href="help.php">'.__('Need help?').'</a></p>'; 
     188          } 
     189 
    184190          $menu =& $GLOBALS['_menu']; 
    185191 
     
    438444          } 
    439445 
     446          // Set contextual help global flag 
     447          $GLOBALS['__resources']['ctxhelp'] = true; 
     448 
    440449          echo 
    441450          '<div id="help"><hr /><div class="help-content clear"><h3>'.__('Help about this page').'</h3>'. 
     
    516525 
    517526          self::jsVar('dotclear.msg.help', 
    518                __('Help about this page')). 
     527               __('Need help?')). 
    519528          self::jsVar('dotclear.msg.help_hide', 
    520529               __('Hide')). 
  • inc/admin/prepend.php

    r1793 r1933  
    216216     } 
    217217     unset($hfiles,$locales_root); 
     218     // Contextual help flag 
     219     $GLOBALS['__resources']['ctxhelp'] = false; 
    218220 
    219221     $core->auth->user_prefs->addWorkspace('interface'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map