diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-12-03 13:29:22 +0100 |
commit | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (patch) | |
tree | ec04cc15b867bc21eedca904cea9af0254531a11 /includes/filerepo/ForeignDBFile.php | |
parent | a22fbfc60f36f5f7ee10d5ae6fe347340c2ee67c (diff) |
Update to MediaWiki 1.18.0
* also update ArchLinux skin to chagnes in MonoBook
* Use only css to hide our menu bar when printing
Diffstat (limited to 'includes/filerepo/ForeignDBFile.php')
-rw-r--r-- | includes/filerepo/ForeignDBFile.php | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/includes/filerepo/ForeignDBFile.php b/includes/filerepo/ForeignDBFile.php index 5f04ea73..09bee39c 100644 --- a/includes/filerepo/ForeignDBFile.php +++ b/includes/filerepo/ForeignDBFile.php @@ -12,6 +12,13 @@ * @ingroup FileRepo */ class ForeignDBFile extends LocalFile { + + /** + * @param $title + * @param $repo + * @param $unused + * @return ForeignDBFile + */ static function newFromTitle( $title, $repo, $unused = null ) { return new self( $title, $repo ); } @@ -19,6 +26,11 @@ class ForeignDBFile extends LocalFile { /** * Create a ForeignDBFile from a title * Do not call this except from inside a repo class. + * + * @param $row + * @param $repo + * + * @return ForeignDBFile */ static function newFromRow( $row, $repo ) { $title = Title::makeTitle( NS_FILE, $row->img_name ); @@ -35,21 +47,30 @@ class ForeignDBFile extends LocalFile { $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(); |