Alex Monk has uploaded a new change for review.

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

Change subject: Don't try to log a boolean for page.revid
......................................................................

Don't try to log a boolean for page.revid

It won't work.

Change-Id: I9f1a34dcdada5cd33a212ed6cb01750ccfa7abfe
---
M WikiEditor.hooks.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiEditor 
refs/changes/24/196724/1

diff --git a/WikiEditor.hooks.php b/WikiEditor.hooks.php
index 8707899..7fb74d0 100644
--- a/WikiEditor.hooks.php
+++ b/WikiEditor.hooks.php
@@ -167,7 +167,7 @@
                        'page.id' => $page->getId(),
                        'page.title' => $title->getPrefixedText(),
                        'page.ns' => $title->getNamespace(),
-                       'page.revid' => $page->getRevision() && 
$page->getRevision()->getId(),
+                       'page.revid' => $page->getRevision() ? 
$page->getRevision()->getId() : 0,
                        'user.id' => $user->getId(),
                        'user.editCount' => $user->getEditCount() ?: 0,
                        'mediawiki.version' => $wgVersion

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f1a34dcdada5cd33a212ed6cb01750ccfa7abfe
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiEditor
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <[email protected]>

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

Reply via email to