aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 83850f8b03..40db1edc0f 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -163,16 +163,12 @@ function make_jumpbox($match_forum_id = 0)
}
}
}
- else
- {
- $boxstring .= '<option value="-1">-- ! No Forums ! --</option>';
- }
}
$boxstring .= '</select>';
}
else
{
- $boxstring .= '<select><option value="-1">-- ! No Categories ! --</option></select>';
+ $boxstring .= '<select name="' . POST_FORUM_URL . '" onChange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"></select>';
}
if( isset($SID) )
@@ -275,6 +271,18 @@ function init_userprefs($userdata)
include($phpbb_root_path . 'language/lang_english/lang_main.' . $phpEx);
}
+ if( defined("IN_ADMIN") )
+ {
+ if( file_exists($phpbb_root_path . "language/lang_" . $board_config['default_lang'] . "/lang_admin.".$phpEx) )
+ {
+ include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx);
+ }
+ else
+ {
+ include($phpbb_root_path . 'language/lang_english/lang_admin.' . $phpEx);
+ }
+ }
+
return;
}