From 13dd43450a56bd72067b6f2350f5d188c5c7e254 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 23 Apr 2007 20:33:57 +0000 Subject: fixed up part of single album view, show songs is all gone, working on replacement browse method --- lib/general.lib.php | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'lib/general.lib.php') diff --git a/lib/general.lib.php b/lib/general.lib.php index bff578a1..ff641e6f 100644 --- a/lib/general.lib.php +++ b/lib/general.lib.php @@ -278,27 +278,6 @@ function scrub_in($str) { } } // scrub_in -/*! - @function batch_ok() - @discussion return boolean if user can batch download - //FIXME: This needs to be fixed, it shouldn't be an independent function - //FIXME: It should reference a central one maybe the access object? -*/ -function batch_ok( ) { - - /* Also make sure that they have ZLIB */ - if (!function_exists('gzcompress')) { return false; } - - // i check this before showing any link - // should make it easy to tie to a new pref if you choose to add it - if (conf('allow_zip_download') AND $GLOBALS['user']->has_access(25)) { - return( $GLOBALS['user']->prefs['download'] ); - } // if allowed zip downloads - - return false; - -} // batch_ok - /*! @function set_memory_limit @discussion this function attempts to change the @@ -664,7 +643,7 @@ function make_bool($string) { function get_languages() { /* Open the locale directory */ - $handle = @opendir(conf('prefix') . '/locale'); + $handle = @opendir(Config::get('prefix') . '/locale'); if (!is_resource($handle)) { debug_event('language','Error unable to open locale directory','1'); @@ -677,7 +656,7 @@ function get_languages() { while ($file = readdir($handle)) { - $full_file = conf('prefix') . '/locale/' . $file; + $full_file = Config::get('prefix') . '/locale/' . $file; /* Check to see if it's a directory */ if (is_dir($full_file) AND substr($file,0,1) != '.' AND $file != 'base') { -- cgit