diff --git a/lib/Pico.php b/lib/Pico.php index d95a6ff23f845f272d98122e6d681a8628243462..18817cea19995fd7c3c3a050f7f2783ab7de76d2 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -532,10 +532,7 @@ class Pico } } } else { - throw new RuntimeException( - "Unable to load plugin '" . $className . "' " - . "from '" . $pluginFile . "'" - ); + throw new RuntimeException("Unable to load plugin '" . $className . "' from '" . $pluginFile . "'"); } } } @@ -1335,8 +1332,8 @@ class Pico * | next_page | &array | reference to the next page | * * Please note that the `previous_page` and `next_page` keys won't be - * available until the `onPagesLoaded` event ({@see Pico::sortPages()}) - * was triggered. + * available until the `onCurrentPageDiscovered` event + * ({@see Pico::discoverPageSiblings()}) was triggered. * * @see Pico::sortPages() * @see Pico::discoverPageSiblings() diff --git a/plugins/DummyPlugin.php b/plugins/DummyPlugin.php index cecd632e217dc665f205833f6f6210eaed690290..c0830596bb3963bd2b403f7d91ff6d14f7a6648c 100644 --- a/plugins/DummyPlugin.php +++ b/plugins/DummyPlugin.php @@ -300,6 +300,9 @@ class DummyPlugin extends AbstractPicoPlugin * | previous_page | &array | reference to the previous 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. * * @see DummyPlugin::onPagesDiscovered()