Changeset 897
- Timestamp:
- Oct 17, 2005, 11:29:51 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r862 r897 37 37 include(PHPWG_ROOT_PATH.'include/page_header.php'); 38 38 39 $template->set_filenames(array('about'=>'about.tpl')); 39 $template->set_filenames( 40 array( 41 'about'=>'about.tpl', 42 'about_content' => get_language_filepath('about.html') 43 ) 44 ); 45 40 46 $template->assign_vars( 41 47 array( … … 44 50 ); 45 51 46 // language files47 $user_langdir = PHPWG_ROOT_PATH.'language/'.$user['language'];48 $conf_langdir = PHPWG_ROOT_PATH.'language/'.$conf['default_language'];49 50 if (file_exists($user_langdir.'/about.html'))51 {52 $html_file = $user_langdir.'/about.html';53 }54 else55 {56 $html_file = $conf_langdir.'/about.html';57 }58 59 $template->set_filenames(array('about_content' => $html_file));60 52 $template->assign_var_from_handle('ABOUT_MESSAGE', 'about_content'); 61 53 -
trunk/doc/ChangeLog
r896 r897 1 2005-10-17 Pierrick LE GALL 2 3 * improvement: use new function get_language_filepath in about.php 4 (complement of bug 168 correction) 5 1 6 2005-10-17 Pierrick LE GALL 2 7
Note: See TracChangeset
for help on using the changeset viewer.