Various small improvements

This commit is contained in:
Daniel Rudolf 2017-05-14 01:26:38 +02:00
parent d26da62bf1
commit b098e22033
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
2 changed files with 6 additions and 6 deletions

View File

@ -532,10 +532,7 @@ class Pico
} }
} }
} else { } else {
throw new RuntimeException( throw new RuntimeException("Unable to load plugin '" . $className . "' from '" . $pluginFile . "'");
"Unable to load plugin '" . $className . "' "
. "from '" . $pluginFile . "'"
);
} }
} }
} }
@ -1335,8 +1332,8 @@ class Pico
* | next_page | &array | reference to the next page | * | next_page | &array | reference to the next page |
* *
* Please note that the `previous_page` and `next_page` keys won't be * Please note that the `previous_page` and `next_page` keys won't be
* available until the `onPagesLoaded` event ({@see Pico::sortPages()}) * available until the `onCurrentPageDiscovered` event
* was triggered. * ({@see Pico::discoverPageSiblings()}) was triggered.
* *
* @see Pico::sortPages() * @see Pico::sortPages()
* @see Pico::discoverPageSiblings() * @see Pico::discoverPageSiblings()

View File

@ -300,6 +300,9 @@ class DummyPlugin extends AbstractPicoPlugin
* | previous_page | &array | reference to the previous page | * | previous_page | &array | reference to the previous page |
* | next_page | &array | reference to the next page | * | next_page | &array | reference to the next page |
* *
* Please note that the `previous_page` and `next_page` keys won't be
* available until the `onCurrentPageDiscovered` event was triggered.
*
* Set `$pageData` to `null` to remove this page from the pages array. * Set `$pageData` to `null` to remove this page from the pages array.
* *
* @see DummyPlugin::onPagesDiscovered() * @see DummyPlugin::onPagesDiscovered()