diff options
author | plegall <plg@piwigo.org> | 2005-09-14 21:57:05 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-09-14 21:57:05 +0000 |
commit | 3371c757424cef291be02a946e528983dece9543 (patch) | |
tree | 2ede9c21e065d766d8a3226309635c46b596d77d /admin/help.php | |
parent | eac1724ee5e20967d989916b76fc9076411be758 (diff) |
- 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.
git-svn-id: http://piwigo.org/svn/trunk@862 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/help.php | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/admin/help.php b/admin/help.php index 5817db6a7..7447c3fc9 100644 --- a/admin/help.php +++ b/admin/help.php @@ -24,23 +24,22 @@ // | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | // | USA. | // +-----------------------------------------------------------------------+ + include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php' ); -//----------------------------------------------------- template initialization -$template->set_filenames( array('help'=>'admin/help.tpl') ); -//----------------------------------------------------- help categories display -$categories = array('images','thumbnails','database','access','groups', - 'remote','upload','virtual','infos'); -foreach ($categories as $category) +// language files +$user_langdir = PHPWG_ROOT_PATH.'language/'.$user['language']; +$conf_langdir = PHPWG_ROOT_PATH.'language/'.$conf['default_language']; + +if (file_exists($user_langdir.'/help.html')) { - $template->assign_block_vars( - 'cat', - array('NAME'=>$lang['help_'.$category.'_title'])); - - foreach ($lang['help_'.$category] as $item) - { - $template->assign_block_vars('cat.item', array('CONTENT'=>$item)); - } + $html_file = $user_langdir.'/help.html'; } -$template->assign_var_from_handle('ADMIN_CONTENT', 'help'); +else +{ + $html_file = $conf_langdir.'/help.html'; +} + +$template->set_filenames(array('help_content' => $html_file)); +$template->assign_var_from_handle('ADMIN_CONTENT', 'help_content'); ?> |