From 241a52907e82ef5e570050482a2897488c78fc18 Mon Sep 17 00:00:00 2001 From: Daniel Rudolf Date: Thu, 1 Oct 2015 22:52:10 +0200 Subject: [PATCH] Update inline code comments --- lib/Pico.php | 4 ++-- plugins/00-PicoDeprecated.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Pico.php b/lib/Pico.php index ee65e7f..67962c2 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -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) * 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 */ diff --git a/plugins/00-PicoDeprecated.php b/plugins/00-PicoDeprecated.php index 39f17eb..65f09ea 100644 --- a/plugins/00-PicoDeprecated.php +++ b/plugins/00-PicoDeprecated.php @@ -86,15 +86,15 @@ class PicoDeprecated extends AbstractPicoPlugin /** * Triggers the deprecated event config_loaded($config), tries to read * {@path "config.php"} in Picos root dir, enables the plugins - * {@link PicoParsePagesContent} and {@link PicoExcerpt} and defines the - * deprecated constants CONTENT_DIR and CONTENT_EXT + * {@link PicoParsePagesContent} and {@link PicoExcerpt} and defines some + * deprecated constants (ROOT_DIR, CONTENT_DIR etc.) * * @see DummyPlugin::onConfigLoaded() */ public function onConfigLoaded(&$config) { 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'); if (is_array($newConfig)) { $config = $newConfig + $config;