Skip to content

Commit

Permalink
Fixing some parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 26, 2011
1 parent 64db007 commit 8053436
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Core/CakePlugin.php
Expand Up @@ -81,10 +81,10 @@ public static function load($plugin, $config = array()) {
* @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'];
}

/**
Expand All @@ -111,7 +111,7 @@ public static function bootstrap($plugin) {
$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';
}
}

Expand Down Expand Up @@ -141,7 +141,7 @@ public static function routes($plugin) {
*
* @return array list of plugins that have been loaded
*/
public static function list() {
public static function enabled() {
return array_keys(self::$_plugins);
}

Expand Down

0 comments on commit 8053436

Please sign in to comment.