Index: trunk/extensions/VariablePage/VariablePage.body.php |
— | — | @@ -17,10 +17,10 @@ |
18 | 18 | $referrer = $wgRequest->getHeader( 'referrer' ); |
19 | 19 | |
20 | 20 | $tracking = '?' . wfArrayToCGI( array( |
21 | | - 'utm_source' => "$utm_source", |
22 | | - 'utm_medium' => "$utm_medium", |
23 | | - 'utm_campaign' => "$utm_campaign", |
24 | | - 'referrer' => "$referrer" |
| 21 | + 'utm_source' => $utm_source, |
| 22 | + 'utm_medium' => $utm_medium, |
| 23 | + 'utm_campaign' => $utm_campaign, |
| 24 | + 'referrer' => $referrer |
25 | 25 | )); |
26 | 26 | |
27 | 27 | $url = $this->determinePage( $wgVariablePagePossibilities ); |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | * |
44 | 44 | * We use a # larger than 100 to increase 'randomness' |
45 | 45 | */ |
46 | | - $random_number = mt_rand( 0, 10000 ); |
| 46 | + $random_number = mt_rand( 0, 100*100 ); |
47 | 47 | $offset = 0; |
48 | 48 | |
49 | 49 | foreach ( $page_possibilities as $url => $probability ) { |