Change-Id: I99d3773a52d4b99367eb3008009da0ffd8a4690a
// 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 ) );
}