mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
Fix #128
This commit is contained in:
parent
4f07aaf565
commit
abba0441f9
2 changed files with 4 additions and 2 deletions
|
@ -82,7 +82,10 @@ class Art extends database_object
|
||||||
*/
|
*/
|
||||||
public static function _auto_init()
|
public static function _auto_init()
|
||||||
{
|
{
|
||||||
self::$enabled = true;
|
if (!isset($_SESSION['art_enabled'])) {
|
||||||
|
$_SESSION['art_enabled'] = (AmpConfig::get('bandwidth') > 25);
|
||||||
|
}
|
||||||
|
self::$enabled = make_bool($_SESSION['art_enabled']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -267,7 +267,6 @@ END;
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* show_header
|
* show_header
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue