diff options
Diffstat (limited to '')
-rw-r--r-- | about.php | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -36,27 +36,19 @@ $title= $lang['about_page_title']; $page['body_id'] = 'theAboutPage'; include(PHPWG_ROOT_PATH.'include/page_header.php'); -$template->set_filenames(array('about'=>'about.tpl')); +$template->set_filenames( + array( + 'about'=>'about.tpl', + 'about_content' => get_language_filepath('about.html') + ) + ); + $template->assign_vars( array( 'U_HOME' => add_session_id(PHPWG_ROOT_PATH.'category.php') ) ); -// language files -$user_langdir = PHPWG_ROOT_PATH.'language/'.$user['language']; -$conf_langdir = PHPWG_ROOT_PATH.'language/'.$conf['default_language']; - -if (file_exists($user_langdir.'/about.html')) -{ - $html_file = $user_langdir.'/about.html'; -} -else -{ - $html_file = $conf_langdir.'/about.html'; -} - -$template->set_filenames(array('about_content' => $html_file)); $template->assign_var_from_handle('ABOUT_MESSAGE', 'about_content'); $template->parse('about'); |