summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-02 07:59:48 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-06-02 07:59:48 +0000
commitf08575e36776ff1521ccf474219d57b2d7ce9574 (patch)
tree38247b41c71cdb923f016a2512fd0ba31e5d5733 /lib
parent201cf8600085634666ae748b6bd4ac259115c94a (diff)
downloadampache-f08575e36776ff1521ccf474219d57b2d7ce9574.tar.gz
ampache-f08575e36776ff1521ccf474219d57b2d7ce9574.tar.bz2
ampache-f08575e36776ff1521ccf474219d57b2d7ce9574.zip
fixed some issues with the catalog verify, find album art still broken
Diffstat (limited to 'lib')
-rw-r--r--lib/class/catalog.class.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php
index 39a2c77b..463cfd95 100644
--- a/lib/class/catalog.class.php
+++ b/lib/class/catalog.class.php
@@ -731,19 +731,18 @@ class Catalog {
} // dump_album_art
- /*!
- @function update_last_update
- @discussion updates the last_update of the catalog
- */
- function update_last_update() {
+ /**
+ * update_last_update
+ * updates the last_update of the catalog
+ */
+ private function update_last_update() {
$date = time();
- $sql = "UPDATE catalog SET last_update='$date' WHERE id='$this->id'";
- $db_results = mysql_query($sql, dbh());
+ $sql = "UPDATE `catalog` SET `last_update`='$date' WHERE `id`='$this->id'";
+ $db_results = Dba::query($sql);
} // update_last_update
-
/**
* update_last_add
* updates the last_add of the catalog
@@ -1557,9 +1556,10 @@ class Catalog {
/* Stupid little cutesie thing */
$count++;
if (!($count%10) ) {
+ $file = str_replace(array('(',')','\''),'',$song->file);
echo "<script type=\"text/javascript\">";
echo "update_txt('" . $count . "','verify_count_" . $catalog_id . "');";
- echo "update_txt('" . htmlentities($song->file) . "','verify_dir_" . $catalog_id . "');";
+ echo "update_txt('" . scrub_out($file) . "','verify_dir_" . $catalog_id . "');";
echo "</script>\n";
flush();
} //echos song count
@@ -1577,7 +1577,7 @@ class Catalog {
self::clean($catalog_id);
// Update the last_update
- self::update_last_update($catalog_id);
+ $this->update_last_update();
// One final time!
echo "<script type=\"text/javascript\">";