Yaron Koren has submitted this change and it was merged. 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 Add missing class SDBrowseDataPage to autoloader. Spotted here https://integration.wikimedia.org/ci/job/mwext-testextension-hhvm/960/console Change-Id: I3b2506b1fa801cb379d935394243b74836ba8cd9 --- M SemanticDrilldown.php 1 file changed, 14 insertions(+), 11 deletions(-) Approvals: Yaron Koren: Looks good to me, approved jenkins-bot: Verified diff --git a/SemanticDrilldown.php b/SemanticDrilldown.php index a98e3d5..c80ed01 100644 --- a/SemanticDrilldown.php +++ b/SemanticDrilldown.php @@ -52,9 +52,8 @@ $wgExtensionMessagesFiles['SemanticDrilldownAlias'] = $sdgIP . '/languages/SD_Aliases.php'; $wgExtensionMessagesFiles['SemanticDrilldownMagic'] = $sdgIP . '/languages/SemanticDrilldown.i18n.magic.php'; -// register all special pages and other classes -$wgSpecialPages['BrowseData'] = 'SDBrowseData'; $wgAutoloadClasses['SDBrowseData'] = $sdgIP . '/specials/SD_BrowseData.php'; +$wgAutoloadClasses['SDBrowseDataPage'] = $sdgIP . '/specials/SD_BrowseData.php'; $wgAutoloadClasses['SDUtils'] = $sdgIP . '/includes/SD_Utils.php'; $wgAutoloadClasses['SDFilter'] = $sdgIP . '/includes/SD_Filter.php'; @@ -63,6 +62,9 @@ $wgAutoloadClasses['SDPageSchemas'] = $sdgIP . '/includes/SD_PageSchemas.php'; $wgAutoloadClasses['SDParserFunctions'] = $sdgIP . '/includes/SD_ParserFunctions.php'; +// register all special pages and other classes +$wgSpecialPages['BrowseData'] = 'SDBrowseData'; + $wgHooks['smwInitProperties'][] = 'sdfInitProperties'; $wgHooks['AdminLinks'][] = 'SDUtils::addToAdminLinks'; $wgHooks['MagicWordwgVariableIDs'][] = 'SDUtils::addMagicWordVariableIDs'; @@ -70,9 +72,6 @@ $wgHooks['ParserBeforeTidy'][] = 'SDUtils::handleShowAndHide'; $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 @@ -138,15 +137,15 @@ $wgNamespaceAliases = $wgNamespaceAliases + $sdgContLang->getNamespaceAliases(); // Support subpages only for talk pages by default - $wgNamespacesWithSubpages = $wgNamespacesWithSubpages + array( + $wgNamespacesWithSubpages = array_merge( $wgNamespacesWithSubpages, array( SD_NS_FILTER_TALK => true - ); + ) ); // Enable semantic links on filter pages - $smwgNamespacesWithSemanticLinks = $smwgNamespacesWithSemanticLinks + array( + $smwgNamespacesWithSemanticLinks = array_merge( $smwgNamespacesWithSemanticLinks, array( SD_NS_FILTER => true, SD_NS_FILTER_TALK => false - ); + ) ); } /**********************************************/ @@ -162,7 +161,9 @@ function sdfInitContentLanguage( $langcode ) { global $sdgIP, $sdgContLang; - if ( !empty( $sdgContLang ) ) { return; } + if ( !empty( $sdgContLang ) ) { + return; + } $sdContLangClass = 'SD_Language' . str_replace( '-', '_', ucfirst( $langcode ) ); @@ -187,7 +188,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: merged Gerrit-Change-Id: I3b2506b1fa801cb379d935394243b74836ba8cd9 Gerrit-PatchSet: 7 Gerrit-Project: mediawiki/extensions/SemanticDrilldown Gerrit-Branch: master Gerrit-Owner: Paladox <[email protected]> Gerrit-Reviewer: Hashar <[email protected]> Gerrit-Reviewer: Paladox <[email protected]> Gerrit-Reviewer: Yaron Koren <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
