Index: trunk/extensions/Collection/Version.php |
— | — | @@ -21,6 +21,6 @@ |
22 | 22 | * http://www.gnu.org/copyleft/gpl.html |
23 | 23 | */ |
24 | 24 | |
25 | | -$wgCollectionVersion = "1.0pre"; |
| 25 | +$wgCollectionVersion = "1.1"; |
26 | 26 | |
27 | 27 | ?> |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -1235,14 +1235,15 @@ |
1236 | 1236 | $timeout=true, $toFile=null ) { |
1237 | 1237 | global $wgHTTPTimeout, $wgHTTPProxy, $wgVersion, $wgTitle, $wgRequest; |
1238 | 1238 | global $wgCollectionMWServeCert; |
| 1239 | + global $wgCollectionVersion; |
1239 | 1240 | |
1240 | 1241 | $c = curl_init( $url ); |
1241 | 1242 | curl_setopt($c, CURLOPT_PROXY, $wgHTTPProxy); |
1242 | 1243 | $userAgent = $wgRequest->getHeader('User-agent'); |
1243 | 1244 | if ( $userAgent ) { |
1244 | | - curl_setopt( $c, CURLOPT_USERAGENT, $userAgent . " (via MediaWiki/$wgVersion)" ); |
| 1245 | + curl_setopt( $c, CURLOPT_USERAGENT, $userAgent . " (via MediaWiki/$wgVersion, Collection/$wgCollectionVersion)" ); |
1245 | 1246 | } else { |
1246 | | - curl_setopt( $c, CURLOPT_USERAGENT, "Unknown user agent (via MediaWiki/$wgVersion)" ); |
| 1247 | + curl_setopt( $c, CURLOPT_USERAGENT, "Unknown user agent (via MediaWiki/$wgVersion, Collection/$wgCollectionVersion)" ); |
1247 | 1248 | } |
1248 | 1249 | curl_setopt( $c, CURLOPT_POST, true ); |
1249 | 1250 | curl_setopt( $c, CURLOPT_POSTFIELDS, $postFields ); |