Follow-up r89544: add dot per CR
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 30 Jun 2011 18:51:24 +0000 (18:51 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Thu, 30 Jun 2011 18:51:24 +0000 (18:51 +0000)
includes/api/ApiQueryFilearchive.php

index 6c3b5c5..54d5a45 100644 (file)
@@ -106,7 +106,7 @@ class ApiQueryFilearchive extends ApiQueryBase {
                                $sha1 = $params['sha1base36'];
                        }
                        if ( $sha1 ) {
-                               $this->addWhere( 'fa_storage_key ' . $db->buildLike( $sha1, $db->anyString() ) );
+                               $this->addWhere( 'fa_storage_key ' . $db->buildLike( "{$sha1}.", $db->anyString() ) );
                        }
                }