From 3fdff2783c7924938fbb6ef2bfd84d9ffa0e6339 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Thu, 11 Feb 2016 15:57:48 +0100 Subject: [PATCH] InfoAction: Remove array dereferencing workaround Change-Id: I99d3773a52d4b99367eb3008009da0ffd8a4690a --- includes/actions/InfoAction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 6f33db723d..a3bd93aa5d 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -410,9 +410,9 @@ class InfoAction extends FormlessAction { // Is this page affected by the cascading protection of something which includes it? if ( $title->isCascadeProtected() ) { $cascadingFrom = ''; - $sources = $title->getCascadeProtectionSources(); // Array deferencing is in PHP 5.4 :( + $sources = $title->getCascadeProtectionSources()[0]; - foreach ( $sources[0] as $sourceTitle ) { + foreach ( $sources as $sourceTitle ) { $cascadingFrom .= Html::rawElement( 'li', array(), Linker::linkKnown( $sourceTitle ) ); } -- 2.20.1