Changeset 862 for trunk/about.php


Ignore:
Timestamp:
09/14/05 23:57:05 (14 years ago)
Author:
plg
Message:
  • improvement: long localized messages are in HTML files instead of $lang array. This is the case of admin/help and about pages.
  • deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute).
  • new: many new contextual help pages to replace descriptions previously included in pages.
  • modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r850 r862  
    4040$template->assign_vars( 
    4141  array( 
    42     'L_ABOUT' => $lang['about_message'], 
    4342    'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php') 
    4443    ) 
    4544  ); 
    4645 
     46// language files 
     47$user_langdir = PHPWG_ROOT_PATH.'language/'.$user['language']; 
     48$conf_langdir = PHPWG_ROOT_PATH.'language/'.$conf['default_language']; 
     49 
     50if (file_exists($user_langdir.'/about.html')) 
     51{ 
     52  $html_file = $user_langdir.'/about.html'; 
     53} 
     54else 
     55{ 
     56  $html_file = $conf_langdir.'/about.html'; 
     57} 
     58 
     59$template->set_filenames(array('about_content' => $html_file)); 
     60$template->assign_var_from_handle('ABOUT_MESSAGE', 'about_content'); 
     61   
    4762$template->parse('about'); 
    4863include(PHPWG_ROOT_PATH.'include/page_tail.php'); 
Note: See TracChangeset for help on using the changeset viewer.