Changeset 26200


Ignore:
Timestamp:
Dec 26, 2013, 1:08:24 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - PersoAbout - only webmaster

Location:
extensions/PersoAbout
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PersoAbout/admin/admin.php

    r14971 r26200  
    1212
    1313//-------------------------------------------------------- sections definitions
     14          if (!is_webmaster())
     15  {
     16    array_push($page['errors'], l10n('This section is reserved for the webmaster'));
     17  }
     18  else
     19  {
    1420
    1521// Gestion des onglets
     
    3844    array('PPABASE' => $conf['persoAbout'],));
    3945
    40 if (isset($_POST['submitppa']) and !is_adviser())
     46if (isset($_POST['submitppa']))
    4147        {
    4248 conf_update_param('persoAbout', $_POST['perso_about']);
     
    5965$template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl'));
    6066$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
     67}
    6168?>
  • extensions/PersoAbout/language/en_UK/plugin.lang.php

    r14971 r26200  
    1212$lang['ppa_ED'] = 'Plugin "ExtendedDescription"';
    1313$lang['ppa_ED_help'] = 'You can use the tags [lang] of this plugin';
     14$lang['This section is reserved for the webmaster'] = 'This section is reserved for the webmaster';
    1415
    1516?>
Note: See TracChangeset for help on using the changeset viewer.