summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-01-04 16:17:47 +0000
committerDries Buytaert <dries@buytaert.net>2009-01-04 16:17:47 +0000
commitfb2c693f0967456a7f9fd07711554686c8268289 (patch)
tree6d94d80f3d5c5af62332bb9f58ccd37ab463ed5d
parent70c1d777ea8c1137d5ec1ec12e70788bc6a569dc (diff)
downloadbrdo-fb2c693f0967456a7f9fd07711554686c8268289.tar.gz
brdo-fb2c693f0967456a7f9fd07711554686c8268289.tar.bz2
- Patch #353861 by killes: converted theme.inc to new database layer.
-rw-r--r--includes/theme.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index e23d58cf4..2d6b88964 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -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;