View Issue Details

IDProjectCategoryView StatusLast Update
0016762phplist applicationpluginspublic03-04-13 16:37
Reporterduncanc 
PrioritynormalSeverityminorReproducibilityalways
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";
=====

by
======
$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.

Activities

michiel

03-04-13 16:37

manager   ~0052002

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