X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles_versions%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FArchivedFile.php;h=6984d48c6d8b030286eec83511e35232c5fe87ce;hb=700a36ace05c4235785fb1d4dd0ae7a0e4b2dbc9;hp=d1e683ac70607a1791b1abf091204b3e22e85a0b;hpb=c118951f57e34c3133693ea56b4f1bfc3a76f473;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index d1e683ac70..6984d48c6d 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -81,7 +81,7 @@ class ArchivedFile { /** @var string SHA-1 hash of file content */ private $sha1; - /** @var string Number of pages of a multipage document, or false for + /** @var int|false Number of pages of a multipage document, or false for * documents which aren't multipage documents */ private $pageCount; @@ -425,6 +425,7 @@ class ArchivedFile { */ function pageCount() { if ( !isset( $this->pageCount ) ) { + // @FIXME: callers expect File objects if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) { $this->pageCount = $this->handler->pageCount( $this ); } else { @@ -491,26 +492,10 @@ class ArchivedFile { throw new MWException( "Unknown type '$type'." ); } - /** - * Return the user name of the uploader. - * - * @deprecated since 1.23 Use getUser( 'text' ) instead. - * @return string - */ - public function getUserText() { - wfDeprecated( __METHOD__, '1.23' ); - $this->load(); - if ( $this->isDeleted( File::DELETED_USER ) ) { - return 0; - } else { - return $this->user_text; - } - } - /** * Return upload description. * - * @return string + * @return string|int */ public function getDescription() { $this->load();