Commit fb2c693f authored by Dries's avatar Dries

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

parent 70c1d777
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment