http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84470
Revision: 84470
Author: nelson
Date: 2011-03-21 18:38:45 +0000 (Mon, 21 Mar 2011)
Log Message:
-----------
Some docs, a spelin eror and fixing a mw1.15 compatibility bug.
Modified Paths:
--------------
trunk/phase3/includes/filerepo/FileRepo.php
trunk/phase3/includes/filerepo/README
trunk/phase3/includes/filerepo/RepoGroup.php
Modified: trunk/phase3/includes/filerepo/FileRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/FileRepo.php 2011-03-21 18:37:54 UTC (rev
84469)
+++ trunk/phase3/includes/filerepo/FileRepo.php 2011-03-21 18:38:45 UTC (rev
84470)
@@ -108,6 +108,7 @@
if ( !is_array( $options ) ) {
// MW 1.15 compat
$time = $options;
+ $options = array();
} else {
$time = isset( $options['time'] ) ? $options['time'] :
false;
}
@@ -218,6 +219,7 @@
if ( !is_array( $options ) ) {
# MW 1.15 compat
$time = $options;
+ $options = array();
} else {
$time = isset( $options['time'] ) ? $options['time'] :
false;
}
Modified: trunk/phase3/includes/filerepo/README
===================================================================
--- trunk/phase3/includes/filerepo/README 2011-03-21 18:37:54 UTC (rev
84469)
+++ trunk/phase3/includes/filerepo/README 2011-03-21 18:38:45 UTC (rev
84470)
@@ -39,3 +39,21 @@
database access and higher-level functions such as cache management.
Tim Starling, June 2007
+
+Structure:
+
+File.php defines an abstract class File.
+ ForeignAPIFile.php extends File.
+ LocalFile.php extends File.
+ ForeignDBFile.php extends LocalFile
+ Image.php extends LocalFile
+ UnregisteredLocalFile.php extends File.
+FileRepo.php defined an abstract class FileRepo.
+ ForeignAPIRepo.php extends FileRepo
+ FSRepo extends FileRepo
+ LocalRepo.php extends FSRepo
+ ForeignDBRepo.php extends LocalRepo
+ ForeignDBViaLBRepo.php extends LocalRepo
+ NullRepo extends FileRepo
+
+Russ Nelson, March 2011
Modified: trunk/phase3/includes/filerepo/RepoGroup.php
===================================================================
--- trunk/phase3/includes/filerepo/RepoGroup.php 2011-03-21 18:37:54 UTC
(rev 84469)
+++ trunk/phase3/includes/filerepo/RepoGroup.php 2011-03-21 18:38:45 UTC
(rev 84470)
@@ -344,7 +344,7 @@
*/
function splitVirtualUrl( $url ) {
if ( substr( $url, 0, 9 ) != 'mwrepo://' ) {
- throw new MWException( __METHOD__.': unknown protoocl'
);
+ throw new MWException( __METHOD__.': unknown protocol'
);
}
$bits = explode( '/', substr( $url, 9 ), 3 );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs