More comments on hash inputs
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 20 Mar 2011 20:50:05 +0000 (20:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 20 Mar 2011 20:50:05 +0000 (20:50 +0000)
includes/filerepo/FileRepo.php
includes/filerepo/RepoGroup.php

index eced312..f2bde0c 100644 (file)
@@ -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() ) {
index 80f94eb..c3ab041 100644 (file)
@@ -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 ) {