Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | /* This version string is used in the user agent for requests and will help |
27 | 27 | * server maintainers in identify ForeignAPI usage. |
28 | 28 | * Update the version every time you make breaking or significant changes. */ |
29 | | - public static $foreignAPIRepoVersion = "2.0"; |
| 29 | + const VERSION = "2.0"; |
30 | 30 | |
31 | 31 | var $fileFactory = array( 'ForeignAPIFile', 'newFromTitle' ); |
32 | 32 | /* Check back with Commons after a day */ |
— | — | @@ -344,7 +344,7 @@ |
345 | 345 | * The user agent the ForeignAPIRepo will use. |
346 | 346 | */ |
347 | 347 | public static function getUserAgent() { |
348 | | - return Http::userAgent() . " ForeignAPIRepo/" . self::$foreignAPIRepoVersion; |
| 348 | + return Http::userAgent() . " ForeignAPIRepo/" . self::VERSION; |
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |