Browse Source

Update inline code comments

Daniel Rudolf 9 years ago
parent
commit
241a52907e
2 changed files with 5 additions and 5 deletions
  1. 2 2
      lib/Pico.php
  2. 3 3
      plugins/00-PicoDeprecated.php

+ 2 - 2
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
      */

+ 3 - 3
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;