Paladox has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/263057

Change subject: Fix Fatal error: Invalid operand type was used, Remove 
$wgPageProps removed config
......................................................................

Fix Fatal error: Invalid operand type was used, Remove $wgPageProps removed 
config

Spotted here
https://integration.wikimedia.org/ci/job/mwext-testextension-hhvm/960/console

Change-Id: I3b2506b1fa801cb379d935394243b74836ba8cd9
---
M SemanticDrilldown.php
1 file changed, 8 insertions(+), 7 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SemanticDrilldown 
refs/changes/57/263057/1

diff --git a/SemanticDrilldown.php b/SemanticDrilldown.php
index a98e3d5..8afcc66 100644
--- a/SemanticDrilldown.php
+++ b/SemanticDrilldown.php
@@ -71,9 +71,6 @@
 $wgHooks['PageSchemasRegisterHandlers'][] = 'SDPageSchemas::registerClass';
 $wgHooks['ParserFirstCallInit'][] = 'SDParserFunctions::registerFunctions';
 
-$wgPageProps['hidefromdrilldown'] = 'Whether or not the page is set as 
HIDEFROMDRILLDOWN';
-$wgPageProps['showindrilldown'] = 'Whether or not the page is set as 
SHOWINDRILLDOWN';
-
 # ##
 # This is the path to your installation of Semantic Drilldown as
 # seen from the web. Change it if required ($wgScriptPath is the
@@ -138,12 +135,12 @@
        $wgNamespaceAliases = $wgNamespaceAliases + 
$sdgContLang->getNamespaceAliases();
 
        // Support subpages only for talk pages by default
-       $wgNamespacesWithSubpages = $wgNamespacesWithSubpages + array(
+       $wgNamespacesWithSubpages = array(
                SD_NS_FILTER_TALK => true
        );
 
        // Enable semantic links on filter pages
-       $smwgNamespacesWithSemanticLinks = $smwgNamespacesWithSemanticLinks + 
array(
+       $smwgNamespacesWithSemanticLinks = array(
                SD_NS_FILTER => true,
                SD_NS_FILTER_TALK => false
        );
@@ -162,7 +159,9 @@
 function sdfInitContentLanguage( $langcode ) {
        global $sdgIP, $sdgContLang;
 
-       if ( !empty( $sdgContLang ) ) { return; }
+       if ( !empty( $sdgContLang ) ) {
+               return;
+       }
 
        $sdContLangClass = 'SD_Language' . str_replace( '-', '_', ucfirst( 
$langcode ) );
 
@@ -187,7 +186,9 @@
 function sdfInitUserLanguage( $langcode ) {
        global $sdgIP, $sdgLang;
 
-       if ( !empty( $sdgLang ) ) { return; }
+       if ( !empty( $sdgLang ) ) {
+               return;
+       }
 
        $sdLangClass = 'SD_Language' . str_replace( '-', '_', ucfirst( 
$langcode ) );
        if ( file_exists( $sdgIP . '/languages/' . $sdLangClass . '.php' ) ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/263057
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3b2506b1fa801cb379d935394243b74836ba8cd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SemanticDrilldown
Gerrit-Branch: master
Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to