From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/filerepo/file/ForeignDBFile.php | 78 ++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 includes/filerepo/file/ForeignDBFile.php (limited to 'includes/filerepo/file/ForeignDBFile.php') diff --git a/includes/filerepo/file/ForeignDBFile.php b/includes/filerepo/file/ForeignDBFile.php new file mode 100644 index 00000000..191a712d --- /dev/null +++ b/includes/filerepo/file/ForeignDBFile.php @@ -0,0 +1,78 @@ +img_name ); + $file = new self( $title, $repo ); + $file->loadFromRow( $row ); + return $file; + } + + function publish( $srcPath, $flags = 0 ) { + $this->readOnlyError(); + } + + function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', + $watch = false, $timestamp = false ) { + $this->readOnlyError(); + } + + function restore( $versions = array(), $unsuppress = false ) { + $this->readOnlyError(); + } + + function delete( $reason, $suppress = false ) { + $this->readOnlyError(); + } + + function move( $target ) { + $this->readOnlyError(); + } + + /** + * @return string + */ + function getDescriptionUrl() { + // Restore remote behaviour + return File::getDescriptionUrl(); + } + + /** + * @return string + */ + function getDescriptionText() { + // Restore remote behaviour + return File::getDescriptionText(); + } +} -- cgit v1.2.3-54-g00ecf