Yaron Koren has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/341452 )

Change subject: Fix for e3f2972d7fe7 - removed call of 
getFormsThatPagePointsTo()
......................................................................

Fix for e3f2972d7fe7 - removed call of getFormsThatPagePointsTo()

Change-Id: I57c2ed1e032a9710b7025592ac0d14afa6a00f9a
---
M includes/PF_AutoeditAPI.php
1 file changed, 1 insertion(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageForms 
refs/changes/52/341452/2

diff --git a/includes/PF_AutoeditAPI.php b/includes/PF_AutoeditAPI.php
index 315db22..f46ddc5 100644
--- a/includes/PF_AutoeditAPI.php
+++ b/includes/PF_AutoeditAPI.php
@@ -264,17 +264,8 @@
                                }
 
                                $formNames = 
PFFormLinker::getDefaultFormsForPage( $targetTitle );
-
-                               // if no default form can be found, try 
alternate forms
                                if ( count( $formNames ) === 0 ) {
-
-                                       $formNames = 
PFFormLinker::getFormsThatPagePointsTo( $targetTitle->getText(), 
$targetTitle->getNamespace(), PFFormLinker::ALTERNATE_FORM );
-
-                                       // if still no form can be found, give 
up
-                                       if ( count( $formNames ) === 0 ) {
-                                               throw new MWException( 
wfMessage( 'pf_autoedit_noformfound' )->parse() );
-                                       }
-
+                                       throw new MWException( wfMessage( 
'pf_autoedit_noformfound' )->parse() );
                                }
 
                        }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I57c2ed1e032a9710b7025592ac0d14afa6a00f9a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PageForms
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <yaro...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to