Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: Use config system for cms title, rather than eval.

  • Loading branch information...
commit 3b9f99394b09fb9c133824d34f8cd2153c26e723 1 parent 1334711
@ajoneil ajoneil authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  admin/code/LeftAndMain.php
View
2  admin/code/LeftAndMain.php
@@ -397,7 +397,7 @@ public function Link($action = null) {
* Menu title is *not* internationalised.
*/
static function menu_title_for_class($class) {
- $title = eval("return $class::\$menu_title;");
+ $title = Config::inst()->get($class, 'menu_title', Config::FIRST_SET);
if(!$title) $title = preg_replace('/Admin$/', '', $class);
return $title;
}
Please sign in to comment.
Something went wrong with that request. Please try again.