Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 3b9f99394b09fb9c133824d34f8cd2153c26e723 1 parent 1334711
Andrew O'Neil authored April 16, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  admin/code/LeftAndMain.php
2  admin/code/LeftAndMain.php
@@ -397,7 +397,7 @@ public function Link($action = null) {
397 397
 	 * Menu title is *not* internationalised.
398 398
 	 */
399 399
 	static function menu_title_for_class($class) {
400  
-		$title = eval("return $class::\$menu_title;");
  400
+		$title = Config::inst()->get($class, 'menu_title', Config::FIRST_SET);
401 401
 		if(!$title) $title = preg_replace('/Admin$/', '', $class);
402 402
 		return $title;
403 403
 	}

0 notes on commit 3b9f993

Please sign in to comment.
Something went wrong with that request. Please try again.