Mention possibility of $revision being null in PageContentSaveComplete
authorAlex Monk <krenair@gmail.com>
Fri, 7 Mar 2014 23:54:49 +0000 (23:54 +0000)
committerIAlex <codereview@emsenhuber.ch>
Sat, 15 Mar 2014 13:23:42 +0000 (13:23 +0000)
Lead to a fatal in WMF production, see I40c1412d

Change-Id: I39e05210e77f3dc0a1fcd995201a9c1ec9bc99f3

docs/hooks.txt

index a833484..e944d55 100644 (file)
@@ -1824,7 +1824,7 @@ $isMinor: Whether or not the edit was marked as minor
 $isWatch: (No longer used)
 $section: (No longer used)
 $flags: Flags passed to WikiPage::doEditContent()
-$revision: New Revision of the article
+$revision: New Revision of the article (can be null for edits that change nothing)
 $status: Status object about to be returned by doEditContent()
 $baseRevId: the rev ID (or false) this edit was based on