r73066 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73065‎ | r73066 | r73067 >
Date:15:17, 15 September 2010
Author:catrope
Status:ok
Tags:
Comment:
VariablePage: Set a default value for $wgVariablePageUtmMedium, minor style fixes
Modified paths:
  • /trunk/extensions/VariablePage/VariablePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/VariablePage/VariablePage.php
@@ -3,10 +3,10 @@
44 * Lightweight variable page redirection
55 */
66
7 -//Alert the user that this is not a valid entry point to MediaWiki if they try to access the special pages file directly.
 7+//Alert the user that this is not a valid entry point to MediaWiki if they try to access the setup file directly.
88 if ( !defined( 'MEDIAWIKI' ) ) {
99 echo <<<EOT
10 -To install my extension, put the following line in LocalSettings.php:
 10+To install this extension, put the following line in LocalSettings.php:
1111 require_once( "\$IP/extensions/VariablePage/VariablePage.php" );
1212 EOT;
1313 exit( 1 );
@@ -21,7 +21,7 @@
2222 );
2323
2424 /**
25 - * An array of pages and the probability of a user being redirected to it.
 25+ * An array of pages and the probability of a user being redirected to each page.
2626 *
2727 * The key in the array is the full URL path, the value is an integer representing
2828 * a percentage (0-100) probability of a user being redirected to that page.
@@ -40,7 +40,7 @@
4141 *
4242 * This can be set to whatever string you wish to use for utm_medium
4343 */
44 -$wgVariablePageUtmMedium;
 44+$wgVariablePageUtmMedium = '';
4545
4646
4747 $dir = dirname( __FILE__ ) . '/';

Follow-up revisions

RevisionCommit summaryAuthorDate
r73073Followup r73066, r73067. Also added a 'sanity check' to make sure configurat...awjrichards17:21, 15 September 2010

Status & tagging log