summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorChristopher Smith <chris@jalakai.co.uk>2015-05-16 17:40:33 +0200
committerChristopher Smith <chris@jalakai.co.uk>2015-05-16 17:40:33 +0200
commitc248bda1dcbef2068071904057b8410aa1eb0200 (patch)
tree2a2adb9f5ab3eeddbd7aabb98ec75acebc376975 /inc/template.php
parente7195f3c8d808e1a725b58626e7c3c7397f2417a (diff)
downloadrpg-c248bda1dcbef2068071904057b8410aa1eb0200.tar.gz
rpg-c248bda1dcbef2068071904057b8410aa1eb0200.tar.bz2
fix missing language code parameter for admin plugin titles
add unit test coverage
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/template.php b/inc/template.php
index fd8bff11a..39d06e895 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1035,7 +1035,7 @@ function tpl_pageinfo($ret = false) {
* @return bool|string
*/
function tpl_pagetitle($id = null, $ret = false) {
- global $ACT, $INPUT, $lang;
+ global $ACT, $INPUT, $conf, $lang;
if(is_null($id)) {
global $ID;
@@ -1061,7 +1061,7 @@ function tpl_pagetitle($id = null, $ret = false) {
// attempt to load the plugin
if (($plugin = plugin_load('admin',$page)) !== null){
- $plugin_title = $plugin->getMenuText();
+ $plugin_title = $plugin->getMenuText($conf['lang']);
$page_title = $plugin_title ? $plugin_title : $page;
}
}