http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76307
Revision: 76307
Author: hartman
Date: 2010-11-08 15:14:20 +0000 (Mon, 08 Nov 2010)
Log Message:
-----------
Followup r76303. Use a less verbose const VERSION.
Modified Paths:
--------------
trunk/phase3/includes/filerepo/ForeignAPIRepo.php
Modified: trunk/phase3/includes/filerepo/ForeignAPIRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/ForeignAPIRepo.php 2010-11-08 15:05:06 UTC
(rev 76306)
+++ trunk/phase3/includes/filerepo/ForeignAPIRepo.php 2010-11-08 15:14:20 UTC
(rev 76307)
@@ -25,7 +25,7 @@
/* 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 @@
* The user agent the ForeignAPIRepo will use.
*/
public static function getUserAgent() {
- return Http::userAgent() . " ForeignAPIRepo/" .
self::$foreignAPIRepoVersion;
+ return Http::userAgent() . " ForeignAPIRepo/" . self::VERSION;
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs