Index: trunk/extensions/Collection/Version.php |
— | — | @@ -1,24 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | -/* |
5 | | - * Collection Extension for MediaWiki |
6 | | - * |
7 | | - * Copyright (C) 2008, PediaPress GmbH |
8 | | - * |
9 | | - * This program is free software; you can redistribute it and/or modify |
10 | | - * it under the terms of the GNU General Public License as published by |
11 | | - * the Free Software Foundation; either version 2 of the License, or |
12 | | - * (at your option) any later version. |
13 | | - * |
14 | | - * This program is distributed in the hope that it will be useful, |
15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 | | - * GNU General Public License for more details. |
18 | | - * |
19 | | - * You should have received a copy of the GNU General Public License along |
20 | | - * with this program; if not, write to the Free Software Foundation, Inc., |
21 | | - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
22 | | - * http://www.gnu.org/copyleft/gpl.html |
23 | | - */ |
24 | | - |
25 | | -$wgCollectionVersion = "1.2"; |
Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -32,7 +32,8 @@ |
33 | 33 | |
34 | 34 | $dir = dirname(__FILE__) . '/'; |
35 | 35 | |
36 | | -require_once( $dir . 'Version.php' ); |
| 36 | +# Extension version |
| 37 | +$wgCollectionVersion = "1.2"; |
37 | 38 | |
38 | 39 | # ============================================================================== |
39 | 40 | |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -973,7 +973,7 @@ |
974 | 974 | curl_setopt($c, CURLOPT_PROXY, $wgHTTPProxy); |
975 | 975 | $userAgent = wfGetAgent(); |
976 | 976 | if ( !$userAgent ) $userAgent = "Unknown user agent"; |
977 | | - curl_setopt( $c, CURLOPT_USERAGENT, $userAgent . " (via MediaWiki/$wgVersion, Collection/$wgCollectionVersion)" ); |
| 977 | + curl_setopt( $c, CURLOPT_USERAGENT, $userAgent . " (via " . Http::userAgent() . ", Collection/$wgCollectionVersion)" ); |
978 | 978 | curl_setopt( $c, CURLOPT_POST, true ); |
979 | 979 | curl_setopt( $c, CURLOPT_POSTFIELDS, $postFields ); |
980 | 980 | curl_setopt( $c, CURLOPT_HTTPHEADER, array( 'Expect:' ) ); |