diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
commit | a2190ac74dd4d7080b12bab90e552d7aa81209ef (patch) | |
tree | 8b31f38de9882d18df54cf8d9e0de74167a094eb /includes/filerepo/file/ForeignAPIFile.php | |
parent | 15e69f7b20b6596b9148030acce5b59993b95a45 (diff) | |
parent | 257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff) |
Merge branch 'mw-1.26'
Diffstat (limited to 'includes/filerepo/file/ForeignAPIFile.php')
-rw-r--r-- | includes/filerepo/file/ForeignAPIFile.php | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/includes/filerepo/file/ForeignAPIFile.php b/includes/filerepo/file/ForeignAPIFile.php index 3d5d5d60..3c78290c 100644 --- a/includes/filerepo/file/ForeignAPIFile.php +++ b/includes/filerepo/file/ForeignAPIFile.php @@ -219,11 +219,15 @@ class ForeignAPIFile extends File { } /** - * @param string $method + * @param string $type * @return int|null|string */ - public function getUser( $method = 'text' ) { - return isset( $this->mInfo['user'] ) ? strval( $this->mInfo['user'] ) : null; + public function getUser( $type = 'text' ) { + if ( $type == 'text' ) { + return isset( $this->mInfo['user'] ) ? strval( $this->mInfo['user'] ) : null; + } elseif ( $type == 'id' ) { + return 0; // What makes sense here, for a remote user? + } } /** @@ -365,4 +369,13 @@ class ForeignAPIFile extends File { # Clear out the thumbnail directory if empty $this->repo->quickCleanDir( $dir ); } + + /** + * The thumbnail is created on the foreign server and fetched over internet + * @since 1.25 + * @return bool + */ + public function isTransformedLocally() { + return false; + } } |