MarkAHershberger has uploaded a new change for review.
https://gerrit.wikimedia.org/r/112244
Change subject: Requires the UserDailyContribs extension but doesn't seem to
document that anywhere.
......................................................................
Requires the UserDailyContribs extension but doesn't seem to document
that anywhere.
Change-Id: I57522ffe10d2e32a76fccc8141a138117f5dad71
---
M ClickTracking.php
M README
2 files changed, 6 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ClickTracking
refs/changes/44/112244/1
diff --git a/ClickTracking.php b/ClickTracking.php
index a8ea678..e221b95 100644
--- a/ClickTracking.php
+++ b/ClickTracking.php
@@ -15,6 +15,10 @@
die( 'This is not a valid entry point to MediaWiki.' );
}
+if ( !function_exists( 'getUserEditCountSince' ) ) {
+ die( 'This extension requires the UserDailyContribs extension.' );
+}
+
/* Configuration */
// Click tracking throttle, should be seen as "1 out of every
$wgClickTrackThrottle users will have it enabled"
@@ -97,4 +101,3 @@
//uncomment for sample campaign
//ClickTrackingHooks::addCampaign($dir. 'modules', 'ClickTracking/modules',
'sampleCampaign' );
-
diff --git a/README b/README
index 2896bcb..542f65a 100644
--- a/README
+++ b/README
@@ -3,6 +3,7 @@
# WikiEditor toolbar makes use of this if present
# This extension requires MediaWiki 1.17+ because it makes use of
ResourceLoader.
+# This extension requires the UserDailyContribs extension to be installed.
# To track a dynamic action, be sure that $.trackAction( 'something to
identify action' ) is called in JS
# To track an action that has state information associated with it, fire
$.trackActionWithInfo( 'action', 'state information' );
@@ -11,4 +12,4 @@
require_once("$IP/extensions/ClickTracking/ClickTracking.php");
// Track 1 in every 10 clicks; set to 1 to track all clicks, -1 to disable
-$wgClickTrackThrottle = 10;
\ No newline at end of file
+$wgClickTrackThrottle = 10;
--
To view, visit https://gerrit.wikimedia.org/r/112244
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I57522ffe10d2e32a76fccc8141a138117f5dad71
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ClickTracking
Gerrit-Branch: master
Gerrit-Owner: MarkAHershberger <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits