View Issue Details

IDProjectCategoryView StatusLast Update
0016762phpList 3 applicationpluginspublic03-04-13 16:37
Reporterduncanc Assigned To 
Status resolvedResolutionfixed 
Product VersionSVN 
Target Version2.11.8Fixed in Version2.11.8 
Summary0016762: Use the plugin's $pageTitles for the page title
DescriptionCurrently the plugin page name, e.g. main, is used as the page title.
The plugin's $pageTitles can be used instead.

In file admin/index.php
replace line 213
@include_once dirname(__FILE__)."/lan/".$_SESSION['adminlanguage']['iso']."/pagetitles.php";

$plugin = ($_GET['pi'] && isset($GLOBALS['plugins'][$_GET['pi']]))
  ? $GLOBALS['plugins'][$_GET['pi']]
  : null;

if ($plugin) {
  $page_title = isset($plugin->pageTitles[$page]) ? $plugin->pageTitles[$page] : $page;
} else {
  @include_once dirname(__FILE__)."/lan/".$_SESSION['adminlanguage']['iso']."/pagetitles.php";

Additionally, the $plugin variable now indicates whether a valid plugin has been specified and can be used elsewhere in the file, such as line 509.

TagsNo tags attached.



03-04-13 16:37

administrator   ~0052002

used a method instead of the pageTitle array, so that it can be translated