Update inline code comments
This commit is contained in:
parent
fbb744dd43
commit
241a52907e
@ -309,7 +309,7 @@ class Pico
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads plugins from PLUGINS_DIR in alphabetical order
|
* Loads plugins from Pico::$pluginsDir in alphabetical order
|
||||||
*
|
*
|
||||||
* Plugin files may be prefixed by a number (e.g. 00-PicoDeprecated.php)
|
* Plugin files may be prefixed by a number (e.g. 00-PicoDeprecated.php)
|
||||||
* to indicate their processing order. You MUST NOT use prefixes between
|
* to indicate their processing order. You MUST NOT use prefixes between
|
||||||
@ -371,7 +371,7 @@ class Pico
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the config.php from CONFIG_DIR
|
* Loads the config.php from Pico::$configDir
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
@ -86,15 +86,15 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|||||||
/**
|
/**
|
||||||
* Triggers the deprecated event config_loaded($config), tries to read
|
* Triggers the deprecated event config_loaded($config), tries to read
|
||||||
* {@path "config.php"} in Picos root dir, enables the plugins
|
* {@path "config.php"} in Picos root dir, enables the plugins
|
||||||
* {@link PicoParsePagesContent} and {@link PicoExcerpt} and defines the
|
* {@link PicoParsePagesContent} and {@link PicoExcerpt} and defines some
|
||||||
* deprecated constants CONTENT_DIR and CONTENT_EXT
|
* deprecated constants (ROOT_DIR, CONTENT_DIR etc.)
|
||||||
*
|
*
|
||||||
* @see DummyPlugin::onConfigLoaded()
|
* @see DummyPlugin::onConfigLoaded()
|
||||||
*/
|
*/
|
||||||
public function onConfigLoaded(&$config)
|
public function onConfigLoaded(&$config)
|
||||||
{
|
{
|
||||||
if (file_exists($this->getRootDir() . 'config.php')) {
|
if (file_exists($this->getRootDir() . 'config.php')) {
|
||||||
// config.php in ROOT_DIR is deprecated; use CONFIG_DIR instead
|
// config.php in Pico::$rootDir is deprecated; use Pico::$configDir instead
|
||||||
$newConfig = require($this->getRootDir() . 'config.php');
|
$newConfig = require($this->getRootDir() . 'config.php');
|
||||||
if (is_array($newConfig)) {
|
if (is_array($newConfig)) {
|
||||||
$config = $newConfig + $config;
|
$config = $newConfig + $config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user