Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/update-hashes.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-hashes.php')
-rw-r--r--bin/update-hashes.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/update-hashes.php b/bin/update-hashes.php
index f7300d5..5d05833 100644
--- a/bin/update-hashes.php
+++ b/bin/update-hashes.php
@@ -85,7 +85,7 @@ $fileQry_sql = "SELECT
WHERE
translations.locale='en-US'";
-$fileQry_result = $db->read($fileQry_sql);
+$fileQry_result = $db->query($fileQry_sql);
while ($fileInfo = mysql_fetch_array($fileQry_result)) {
@@ -99,7 +99,7 @@ while ($fileInfo = mysql_fetch_array($fileQry_result)) {
echo "{$fileInfo['name']} {$fileInfo['version']} (file {$fileInfo['file_id']}): ";
if ('sha256:'.$hash != $fileInfo['hash'] || $size != $fileInfo['size']) {
$hash_update_sql = "UPDATE files SET hash='sha256:{$hash}', size='{$size}' WHERE id={$fileInfo['file_id']}";
- $hash_update_result = $db->write($hash_update_sql);
+ $hash_update_result = $db->query($hash_update_sql, true);
if ('sha256:'.$hash != $fileInfo['hash']) {
echo "HASH - new: sha256:{$hash}; old: {$fileInfo['hash']}";