- Patch #353861 by killes: converted theme.inc to new database layer.
parent
70c1d777ea
commit
fb2c693f09
|
@ -456,8 +456,8 @@ function list_themes($refresh = FALSE) {
|
|||
// Extract from the database only when it is available.
|
||||
// Also check that the site is not in the middle of an install or update.
|
||||
if (db_is_active() && !defined('MAINTENANCE_MODE')) {
|
||||
$result = db_query("SELECT * FROM {system} WHERE type = '%s'", 'theme');
|
||||
while ($theme = db_fetch_object($result)) {
|
||||
$result = db_query("SELECT * FROM {system} WHERE type = :theme", array(':theme' => 'theme'));
|
||||
foreach ($result as $theme) {
|
||||
if (file_exists($theme->filename)) {
|
||||
$theme->info = unserialize($theme->info);
|
||||
$themes[] = $theme;
|
||||
|
|
Loading…
Reference in New Issue