From 641e7de6373bcbf7ffb5ac3a8b737fb31f4f33c7 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 14 May 2007 07:12:15 +0000 Subject: catalog build technically works now, still working out some issues with the dynamic updating of the current state --- lib/general.lib.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib/general.lib.php') diff --git a/lib/general.lib.php b/lib/general.lib.php index c9283f08..4ee9796f 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -190,7 +190,7 @@ function extend_session($sid) { function get_tag_type($results) { /* Pull In the config option */ - $order = conf('tag_order'); + $order = Config::get('tag_order'); if (!is_array($order)) { $order = array($order); @@ -236,12 +236,7 @@ function clean_tag_info($results,$key,$filename) { $info['title'] = stripslashes(trim($results[$key]['title'])); $info['year'] = intval($results[$key]['year']); $info['track'] = intval($results[$key]['track']); - $info['comment'] = sql_escape(str_replace($clean_array,$wipe_array,$results[$key]['comment'])); - - if (strlen($info['comment']) > 254) { - debug_event('catalog','Error: Comment over 254 Char, truncating',4); - $info['comment'] = substr($info['comment'],0,254); - } + $info['comment'] = Dba::escape(str_replace($clean_array,$wipe_array,$results[$key]['comment'])); /* This are pulled from the info array */ $info['bitrate'] = intval($results['info']['bitrate']); -- cgit