mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing some parse errors
This commit is contained in:
parent
64db00706e
commit
8053436b35
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue