Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F9262
UserDailyContribs.hooks.php.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 22 2014, 12:21 AM
2014-11-22 00:21:16 (UTC+0)
Size
662 B
Referenced Files
None
Subscribers
None
UserDailyContribs.hooks.php.diff
View Options
Index: UserDailyContribs.hooks.php
===================================================================
--- UserDailyContribs.hooks.php (revision 115400)
+++ UserDailyContribs.hooks.php (working copy)
@@ -42,7 +42,13 @@
*
* @return true
*/
- public static function articleSaveComplete( $article, $user ){
+ public static function articleSaveComplete( $article, $user, $text, $summary,
+ $minoredit, $watchthis, $sectionanchor, $flags, $revision ) {
+ /* Nothing to count if no new revision is saved */
+ if ( $revision === null ) {
+ return true;
+ }
+
$today = gmdate( 'Ymd', time() );
$dbw = wfGetDB( DB_MASTER );
$dbw->update(
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8768
Default Alt Text
UserDailyContribs.hooks.php.diff (662 B)
Attached To
Mode
T38492: Extension:UserDailyContribs counts null edits as edits
Attached
Detach File
Event Timeline
Log In to Comment