- Patch #353861 by killes: converted theme.inc to new database layer.

merge-requests/26/head
Dries Buytaert 2009-01-04 16:17:47 +00:00
parent 70c1d777ea
commit fb2c693f09
1 changed files with 2 additions and 2 deletions

View File

@ -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;