summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-11-07 00:27:20 +0000
committerDries Buytaert <dries@buytaert.net>2010-11-07 00:27:20 +0000
commit0447e92bf3f6e60cf308b3041ea1c685d8cecca6 (patch)
treec62c29f31f99d7396fbd46e43f329fc571a6120b /modules
parent926dff9fc9739e85085890e3e4e96e8551e51ff7 (diff)
downloadbrdo-0447e92bf3f6e60cf308b3041ea1c685d8cecca6.tar.gz
brdo-0447e92bf3f6e60cf308b3041ea1c685d8cecca6.tar.bz2
- Patch #801632 by sun, Jacine: make phptemplate the default engine to simplify .info file.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 697c394ed..004a0be93 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2410,6 +2410,7 @@ function _system_rebuild_theme_data() {
// Set defaults for theme info.
$defaults = array(
+ 'engine' => 'phptemplate',
'regions' => array(
'sidebar_first' => 'Left sidebar',
'sidebar_second' => 'Right sidebar',
@@ -2443,7 +2444,7 @@ function _system_rebuild_theme_data() {
if (!empty($themes[$key]->info['base theme'])) {
$sub_themes[] = $key;
}
- if (empty($themes[$key]->info['engine'])) {
+ if ($themes[$key]->info['engine'] == 'theme') {
$filename = dirname($themes[$key]->uri) . '/' . $themes[$key]->name . '.theme';
if (file_exists($filename)) {
$themes[$key]->owner = $filename;