if ( !is_array( $options ) ) {
// MW 1.15 compat
$time = $options;
+ $options = array();
} else {
$time = isset( $options['time'] ) ? $options['time'] : false;
}
if ( !is_array( $options ) ) {
# MW 1.15 compat
$time = $options;
+ $options = array();
} else {
$time = isset( $options['time'] ) ? $options['time'] : false;
}
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
*/
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 );