Page MenuHomePhabricator

UserDailyContribs.hooks.php.diff

Authored By
bzimport
Nov 22 2014, 12:21 AM
Size
662 B
Referenced Files
None
Subscribers
None

UserDailyContribs.hooks.php.diff

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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8768
Default Alt Text
UserDailyContribs.hooks.php.diff (662 B)

Event Timeline