From 8053436b354085afbc0d3a65590876762607cf51 Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Mon, 25 Apr 2011 22:42:33 -0430 Subject: [PATCH] Fixing some parse errors --- lib/Cake/Core/CakePlugin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Cake/Core/CakePlugin.php b/lib/Cake/Core/CakePlugin.php index f4702ccd8..442c2b2d6 100644 --- a/lib/Cake/Core/CakePlugin.php +++ b/lib/Cake/Core/CakePlugin.php @@ -81,10 +81,10 @@ class CakePlugin { * @throws MissingPluginException if the folder for plugin was not found or plugin has not been loaded */ public static function path($plugin) { - if (empty(self::_$plugins[$plugin])) { + if (empty(self::$_plugins[$plugin])) { throw new MissingPluginException(array('plugin' => $plugin)); } - return self::_$plugins[$plugin]['path']; + return self::$_plugins[$plugin]['path']; } /** @@ -111,7 +111,7 @@ class CakePlugin { $bootstrap = (array)$config['bootstrap']; foreach ($bootstrap as $file) { if (is_file($path . 'config' . DS . $file . '.php')) { - include $path . 'config' . DS . $file . '.php' + include $path . 'config' . DS . $file . '.php'; } } @@ -141,7 +141,7 @@ class CakePlugin { * * @return array list of plugins that have been loaded */ - public static function list() { + public static function enabled() { return array_keys(self::$_plugins); }