summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-30 01:49:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-30 01:49:13 +0000
commit318700ad7cd0e67bf02a1e6777cb5c2cd4c3b240 (patch)
treeb8b9d60e5fdc3459b56da39825091b0f2c38ce77 /lib
parent7cdf1e980d294085fd1053a1c50cede127bf1352 (diff)
downloadampache-318700ad7cd0e67bf02a1e6777cb5c2cd4c3b240.tar.gz
ampache-318700ad7cd0e67bf02a1e6777cb5c2cd4c3b240.tar.bz2
ampache-318700ad7cd0e67bf02a1e6777cb5c2cd4c3b240.zip
fixed paging on browse catalogs page, disabled the write_tags script and removed a dbl escape on the preferences
Diffstat (limited to 'lib')
-rw-r--r--lib/class/browse.class.php4
-rw-r--r--lib/class/dba.class.php2
-rw-r--r--lib/init.php2
-rw-r--r--lib/preferences.php2
4 files changed, 7 insertions, 3 deletions
diff --git a/lib/class/browse.class.php b/lib/class/browse.class.php
index 2e65a783..ae82d271 100644
--- a/lib/class/browse.class.php
+++ b/lib/class/browse.class.php
@@ -619,6 +619,8 @@ class Browse {
${$class_name} = new $class_name($id);
}
+ Ajax::start_container('browse_content');
+
// Switch on the type of browsing we're doing
switch ($_SESSION['browse']['type']) {
case 'song':
@@ -676,6 +678,8 @@ class Browse {
break;
} // end switch on type
+ Ajax::end_container();
+
} // show_object
/**
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index 3facabd3..3a348a46 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -56,6 +56,7 @@ class Dba {
// Run the query
$resource = mysql_query($sql,self::dbh());
+ debug_event('Query',$sql,'6');
// Save the query, to make debug easier
self::$_sql = $sql;
@@ -85,7 +86,6 @@ class Dba {
public static function fetch_assoc($resource) {
$result = mysql_fetch_assoc($resource);
- debug_event('Assoc',self::$_sql,'6');
if (!$result) {
return array();
diff --git a/lib/init.php b/lib/init.php
index 15ccf72d..01f15bb2 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -81,7 +81,7 @@ if (!count($results)) {
}
/** This is the version.... fluf nothing more... **/
-$results['version'] = '3.4-Beta2 Build (001)';
+$results['version'] = '3.4-Beta2 Build (002)';
$results['int_config_version'] = '6';
$results['raw_web_path'] = $results['web_path'];
diff --git a/lib/preferences.php b/lib/preferences.php
index ea77ce02..7247bf63 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -49,7 +49,7 @@ function update_preferences($pref_id=0) {
$name = $data['name'];
$apply_to_all = "check_" . $data['name'];
$id = $data['id'];
- $value = Dba::escape(scrub_in($_REQUEST[$name]));
+ $value = scrub_in($_REQUEST[$name]);
/* Some preferences require some extra checks to be performed */
switch ($name) {