From 66e2b7e1aa6c23fe00899b9d032665f08091a680 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 8 Nov 2010 15:14:20 +0000 Subject: [PATCH] Followup r76303. Use a less verbose const VERSION. --- includes/filerepo/ForeignAPIRepo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } /** -- 2.20.1