|
@@ -67,7 +67,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onPluginsLoaded()
|
|
* @see DummyPlugin::onPluginsLoaded()
|
|
*/
|
|
*/
|
|
- public function onPluginsLoaded(&$plugins)
|
|
|
|
|
|
+ public function onPluginsLoaded(array &$plugins)
|
|
{
|
|
{
|
|
if (!empty($plugins)) {
|
|
if (!empty($plugins)) {
|
|
foreach ($plugins as $plugin) {
|
|
foreach ($plugins as $plugin) {
|
|
@@ -110,7 +110,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
* @param mixed[] &$realConfig array of config variables
|
|
* @param mixed[] &$realConfig array of config variables
|
|
* @return void
|
|
* @return void
|
|
*/
|
|
*/
|
|
- public function onConfigLoaded(&$realConfig)
|
|
|
|
|
|
+ public function onConfigLoaded(array &$realConfig)
|
|
{
|
|
{
|
|
global $config;
|
|
global $config;
|
|
|
|
|
|
@@ -167,7 +167,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
* @param mixed[] &$realConfig array of config variables
|
|
* @param mixed[] &$realConfig array of config variables
|
|
* @return void
|
|
* @return void
|
|
*/
|
|
*/
|
|
- protected function loadRootDirConfig(&$realConfig)
|
|
|
|
|
|
+ protected function loadRootDirConfig(array &$realConfig)
|
|
{
|
|
{
|
|
if (file_exists($this->getRootDir() . 'config.php')) {
|
|
if (file_exists($this->getRootDir() . 'config.php')) {
|
|
// config.php in Pico::$rootDir is deprecated
|
|
// config.php in Pico::$rootDir is deprecated
|
|
@@ -284,7 +284,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onMetaHeaders()
|
|
* @see DummyPlugin::onMetaHeaders()
|
|
*/
|
|
*/
|
|
- public function onMetaHeaders(&$headers)
|
|
|
|
|
|
+ public function onMetaHeaders(array &$headers)
|
|
{
|
|
{
|
|
$this->triggerEvent('before_read_file_meta', array(&$headers));
|
|
$this->triggerEvent('before_read_file_meta', array(&$headers));
|
|
}
|
|
}
|
|
@@ -294,7 +294,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onMetaParsed()
|
|
* @see DummyPlugin::onMetaParsed()
|
|
*/
|
|
*/
|
|
- public function onMetaParsed(&$meta)
|
|
|
|
|
|
+ public function onMetaParsed(array &$meta)
|
|
{
|
|
{
|
|
$this->triggerEvent('file_meta', array(&$meta));
|
|
$this->triggerEvent('file_meta', array(&$meta));
|
|
}
|
|
}
|
|
@@ -328,7 +328,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onSinglePageLoaded()
|
|
* @see DummyPlugin::onSinglePageLoaded()
|
|
*/
|
|
*/
|
|
- public function onSinglePageLoaded(&$pageData)
|
|
|
|
|
|
+ public function onSinglePageLoaded(array &$pageData)
|
|
{
|
|
{
|
|
$this->triggerEvent('get_page_data', array(&$pageData, $pageData['meta']));
|
|
$this->triggerEvent('get_page_data', array(&$pageData, $pageData['meta']));
|
|
}
|
|
}
|
|
@@ -344,7 +344,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onPagesLoaded()
|
|
* @see DummyPlugin::onPagesLoaded()
|
|
*/
|
|
*/
|
|
- public function onPagesLoaded(&$pages, &$currentPage, &$previousPage, &$nextPage)
|
|
|
|
|
|
+ public function onPagesLoaded(array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null)
|
|
{
|
|
{
|
|
// remove keys of pages array
|
|
// remove keys of pages array
|
|
$plainPages = array();
|
|
$plainPages = array();
|
|
@@ -391,7 +391,7 @@ class PicoDeprecated extends AbstractPicoPlugin
|
|
*
|
|
*
|
|
* @see DummyPlugin::onPageRendering()
|
|
* @see DummyPlugin::onPageRendering()
|
|
*/
|
|
*/
|
|
- public function onPageRendering(&$twig, &$twigVariables, &$templateName)
|
|
|
|
|
|
+ public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
|
|
{
|
|
{
|
|
// template name contains file extension since Pico 1.0
|
|
// template name contains file extension since Pico 1.0
|
|
$fileExtension = '';
|
|
$fileExtension = '';
|