Ignore:
Timestamp:
Nov 18, 2011, 1:54:29 PM (12 years ago)
Author:
flop25
Message:

adding one new key in language files
adding a link to see the current default plugin.lang.php, via localfiles editor
"overloading" the local language files to apply customization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/charte_user.php

    r12621 r12646  
    3737elseif (!isset( $_POST['groupe'] ))
    3838{
    39    $title = 'Adult content';
    40    $page['body_id'] = 'adult_content_page';
    41    include(PHPWG_ROOT_PATH.'include/page_header.php');
    42    load_language('plugin.lang', $adult_content->plugin_path);
    43 
    44    $template->assign(
    45      array(
    46        'PLUGIN_NAME' => $adult_content->plugin_name
    47        ));
     39  $title = 'Adult content';
     40  $page['body_id'] = 'adult_content_page';
     41  include(PHPWG_ROOT_PATH.'include/page_header.php');
     42  load_language('plugin.lang', $adult_content->plugin_path);
     43  load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );
     44  $template->assign(
     45   array(
     46     'PLUGIN_NAME' => $adult_content->plugin_name
     47  ));
    4848////////////lié à quoi/////     
    49                         $adult_content->fill_idgroups_user();
    50                         $adult_content->fill_idgroups_ad_c();   
     49  $adult_content->fill_idgroups_user();
     50  $adult_content->fill_idgroups_ad_c();
    5151
    5252        if (!$adult_content->is_in_ad_c_group())
Note: See TracChangeset for help on using the changeset viewer.