Mglaser has uploaded a new change for review.

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

Change subject: CountThings: restored word count
......................................................................

CountThings: restored word count

Word count was not properly configured with GenericTagHandler. Now
works again.

Change-Id: Iba4eb25e20718b4f7d8dca43461a47e00a51dd0f
---
M CountThings/CountThings.class.php
1 file changed, 5 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/14/315914/1

diff --git a/CountThings/CountThings.class.php 
b/CountThings/CountThings.class.php
index 80516b7..6bb1f69 100644
--- a/CountThings/CountThings.class.php
+++ b/CountThings/CountThings.class.php
@@ -67,7 +67,7 @@
                        'bs:countcharacters' => array(
                                //Param definition for inner tag content
                                'input' => array(
-                                       'type' => 'titlelist',
+                                       'type' => 'string',
                                        'required' => true,
                                        //specific to type "TitleList"
                                        'hastoexist' => true
@@ -181,7 +181,10 @@
                $sOut = '';
                $aModes = $args['modes'];
 
-               foreach( $input as $oTitle ) {
+               $oTitles = array();
+               $oTitles[] = Title::newFromText( $input );
+
+               foreach( $oTitles as $oTitle ) {
                        $sContent = 
BsPageContentProvider::getInstance()->getContentFromTitle( $oTitle ); //Old: 
last revision
 
                        $oCountView = new ViewCountCharacters();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba4eb25e20718b4f7d8dca43461a47e00a51dd0f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Mglaser <gla...@hallowelt.biz>

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

Reply via email to