From: Derk-Jan Hartman Date: Mon, 8 Nov 2010 15:14:20 +0000 (+0000) Subject: Followup r76303. Use a less verbose const VERSION. X-Git-Tag: 1.31.0-rc.0~33990 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=66e2b7e1aa6c23fe00899b9d032665f08091a680;p=lhc%2Fweb%2Fwiklou.git Followup r76303. Use a less verbose const VERSION. --- diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 8182b013d5..d2f5c3253a 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -25,7 +25,7 @@ class ForeignAPIRepo extends FileRepo { /* This version string is used in the user agent for requests and will help * server maintainers in identify ForeignAPI usage. * Update the version every time you make breaking or significant changes. */ - public static $foreignAPIRepoVersion = "2.0"; + const VERSION = "2.0"; var $fileFactory = array( 'ForeignAPIFile', 'newFromTitle' ); /* Check back with Commons after a day */ @@ -344,7 +344,7 @@ class ForeignAPIRepo extends FileRepo { * The user agent the ForeignAPIRepo will use. */ public static function getUserAgent() { - return Http::userAgent() . " ForeignAPIRepo/" . self::$foreignAPIRepoVersion; + return Http::userAgent() . " ForeignAPIRepo/" . self::VERSION; } /**