|
From: Paul S. O. <ps...@us...> - 2001-12-17 00:24:09
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv21214
Modified Files:
faq.php
Log Message:
Added BBCode guide as separate file ... no doubt this will annoy some, oh well :)
Index: faq.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/faq.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** faq.php 2001/11/27 21:37:31 1.9
--- faq.php 2001/12/17 00:24:06 1.10
***************
*** 37,42 ****
// Load the appropriate faq file
//
- include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_faq.' . $phpEx);
//
// Pull the array data from the lang pack
--- 37,62 ----
// Load the appropriate faq file
//
+ if( isset($HTTP_GET_VARS['mode']) )
+ {
+ switch( $HTTP_GET_VARS['mode'] )
+ {
+ case 'bbcode':
+ $lang_file = "lang_bbcode";
+ $l_title = $lang['BBCode_guide'];
+ break;
+ default:
+ $lang_file = "lang_faq";
+ $l_title = $lang['FAQ'];
+ break;
+ }
+ }
+ else
+ {
+ $lang_file = "lang_faq";
+ $l_title = $lang['FAQ'];
+ }
+ include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
+
//
// Pull the array data from the lang pack
***************
*** 72,76 ****
// Lets build a page ...
//
! $page_title = $lang['FAQ'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
--- 92,96 ----
// Lets build a page ...
//
! $page_title = $l_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
***************
*** 92,96 ****
$template->assign_vars(array(
! "L_FAQ" => $lang['FAQ'])
);
--- 112,116 ----
$template->assign_vars(array(
! "L_FAQ_TITLE" => $l_title)
);
|