NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016762phplist applicationpluginspublic25-03-13 15:4103-04-13 16:37
PlatformOSOS Version
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
michiel (manager)
03-04-13 16:37

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

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker