Browse files

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

  • Loading branch information...
1 parent 1334711 commit 3b9f99394b09fb9c133824d34f8cd2153c26e723 Andrew O'Neil committed Apr 16, 2012
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;
}

0 comments on commit 3b9f993

Please sign in to comment.