Ignore:
Timestamp:
Nov 22, 2009, 12:25:19 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Head to different help files from different tabs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/main.inc.php

    r4330 r4336  
    9797function ec_popup_help_content($popup_help_content, $page) {
    9898  return (
    99    $help_content = ($page == 'event_cats' and is_admin()) ?
    100     load_language('help.html', EVNTCATS_PATH, array('return' => true)) : false
     99   $help_content = (is_admin() and in_array($page, array(
     100    'ec_help_new', 'ec_help_mod', 'ec_help_ent', 'ec_help_cfg', 'ec_help_dup'
     101   ))) ?
     102    load_language($page.'.html', EVNTCATS_PATH, array('return' => true)) : false
    101103  ) ? $popup_help_content.$help_content : $popup_help_content;
    102104}
     
    290292    )
    291293  ) {
    292     $template->assign( 'U_REGISTER', get_root_url().'register.php');
     294    $template->assign('U_REGISTER', get_root_url().'register.php');
    293295    if (
    294296      read_ec_conf('duplic_display') == '1' or (
     
    297299      )
    298300    ) {
    299       $lang['Register'] = l10n('Duplicate');
    300       $lang['Create a new account'] = l10n('Create a new account with same properties');
     301      $lang['Register'] = $lang['Duplicate'];
     302      $lang['Create a new account'] = $lang['Create a new account with same properties'];
    301303    }
    302304  }
Note: See TracChangeset for help on using the changeset viewer.