Dvogel hallowelt has uploaded a new change for review. https://gerrit.wikimedia.org/r/236514
Change subject: SmartList: Fixed issue with whitspace on category filter ...................................................................... SmartList: Fixed issue with whitspace on category filter makeCategoriesFilterCondition: categorie names trimmed and whitespace replaced with underscore. Change-Id: Idbfcbbe4019ae29852b1beba2e236429a7c9bdf2 --- M SmartList/SmartList.class.php 1 file changed, 2 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/14/236514/1 diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php index 0390363..ff41b73 100644 --- a/SmartList/SmartList.class.php +++ b/SmartList/SmartList.class.php @@ -803,7 +803,6 @@ } elseif( $aArgs['mode'] == 'whatlinkshere' ) { //PW(25.02.2015) TODO: //There could be filters - see Special:Whatlinkshere - $oTargetTitle = empty( $aArgs['target'] ) ? $this->getContext()->getTitle() : Title::newFromText( $aArgs['target'] ) @@ -1326,8 +1325,8 @@ $aCategories = explode( ',', $aArgs['categories'] ); $iCnt = count( $aCategories ); for ( $i = 0; $i < $iCnt; $i++ ) { - $aCategories[$i] = str_replace( ' ', '_', $aCategories[$i] ); - $aCategories[$i] = "'" . trim( ucfirst( $aCategories[$i] ) ) . "'"; + $sName = Category::newFromName(trim( $aCategories[$i] ))->getName(); + $aCategories[$i] = "'" . $sName. "'" ; } $aArgs['categories'] = implode( ',', $aCategories ); -- To view, visit https://gerrit.wikimedia.org/r/236514 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idbfcbbe4019ae29852b1beba2e236429a7c9bdf2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: REL1_23 Gerrit-Owner: Dvogel hallowelt <daniel.vo...@hallowelt.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits