jenkins-bot has submitted this change and it was merged.

Change subject: Fix varname
......................................................................


Fix varname

Change-Id: I14a752a0280a626d5283e82c99bd51a03007348b
---
M includes/Model/Workflow.php
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  EBernhardson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Model/Workflow.php b/includes/Model/Workflow.php
index acdc4ee..a29de70 100644
--- a/includes/Model/Workflow.php
+++ b/includes/Model/Workflow.php
@@ -160,10 +160,10 @@
                        if ( $this->getOwnerTitle()->equals( $oldTitle ) ) {
                                $this->pageId = $oldTitle->getArticleID();
                        } else {
-                               throw new DataModelException( "The provided 
oldTitle ({$oldTitle}) does not match this workflow." );
+                               throw new DataModelException( "The provided 
oldTitle ({$oldTitle->getPrefixedDBkey()}) does not match this workflow." );
                        }
                } elseif ( $oldTitle->getArticleID() !== $this->pageId ) {
-                       throw new DataModelException( 'Must update from title 
with same page id. ' . $this->pageId . ' !== ' . $title->getArticleID() );
+                       throw new DataModelException( 'Must update from title 
with same page id. ' . $this->pageId . ' !== ' . $oldTitle->getArticleID() );
                }
 
                $this->namespace = $newTitle->getNamespace();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I14a752a0280a626d5283e82c99bd51a03007348b
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <[email protected]>
Gerrit-Reviewer: EBernhardson <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to