From 89ef115660453420927010c4bdf1b6402c1e864b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 20 Mar 2011 20:50:05 +0000 Subject: [PATCH] More comments on hash inputs --- includes/filerepo/FileRepo.php | 4 ++-- includes/filerepo/RepoGroup.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index eced31290b..f2bde0c59d 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -185,7 +185,7 @@ abstract class FileRepo { /** * Create a new File object from the local repository - * @param $sha1 Mixed: SHA-1 key + * @param $sha1 Mixed: base 36 SHA-1 hash * @param $time Mixed: time at which the image was uploaded. * If this is specified, the returned object will be an * of the repository's old file class instead of a current @@ -211,7 +211,7 @@ abstract class FileRepo { * Returns false if the file does not exist. Repositories not supporting * version control should return false if the time is specified. * - * @param $sha1 String + * @param $sha1 String base 36 SHA-1 hash * @param $options Option array, same as findFile(). */ function findFileFromKey( $sha1, $options = array() ) { diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 80f94eb24c..c3ab04162e 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -215,7 +215,7 @@ class RepoGroup { * Find an instance of the file with this key, created at the specified time * Returns false if the file does not exist. * - * @param $hash String SHA-1 + * @param $hash String base 36 SHA-1 hash * @param $options Option array, same as findFile() * @return File object or false if it is not found */ @@ -237,7 +237,7 @@ class RepoGroup { /** * Find all instances of files with this key * - * @param $hash String SHA-1 + * @param $hash String base 36 SHA-1 hash * @return Array of File objects */ function findBySha1( $hash ) { -- 2.20.1