MaxSem has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/333799 )

Change subject: Merge "Fix "Call to undefined method 
JsonConfig\JCTitle::getPrefixedText()""
......................................................................

Merge "Fix "Call to undefined method JsonConfig\JCTitle::getPrefixedText()""

Change-Id: Ia5216d7f72f7da3367a41496905dcee96fa78c6c
---
M includes/JCDataApi.php
1 file changed, 1 insertion(+), 5 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/JsonConfig 
refs/changes/99/333799/1

diff --git a/includes/JCDataApi.php b/includes/JCDataApi.php
index a22598c..294e332 100644
--- a/includes/JCDataApi.php
+++ b/includes/JCDataApi.php
@@ -15,11 +15,7 @@
                $params = $this->extractRequestParams();
                $jct = JCSingleton::parseTitle( $params['title'], NS_DATA );
                if ( !$jct ) {
-                       if ( is_callable( [ $this, 'dieWithError' ] ) ) {
-                               $this->dieWithError( [ 'apierror-invalidtitle', 
wfEscapeWikiText( $params['title'] ) ] );
-                       } else {
-                               $this->dieUsageMsg( [ 'invalidtitle', 
$params['title'] ] );
-                       }
+                       $this->dieWithError( [ 'apierror-invalidtitle', 
wfEscapeWikiText( $params['title'] ) ] );
                }
 
                $data = JCSingleton::getContent( $jct );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia5216d7f72f7da3367a41496905dcee96fa78c6c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/JsonConfig
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

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

Reply via email to