Closed (fixed)
Project:
Smarty theme engine
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
15 Feb 2005 at 13:51 UTC
Updated:
5 Mar 2005 at 11:15 UTC
Current release doesn't work with latest Drupal.
Smarty based theme are not listed.
See fix below.
--- smarty/smarty.engine 2004-12-02 17:38:37.000000000 +0100
+++ /var/www/drupal/htdoc/themes/engines/smarty/smarty.engine 2005-02-15 14:51:02.125099608 +0100
@@ -42,8 +42,8 @@
}
-function smarty_templates($directory) {
- $templates = file_scan_directory($directory, 'page.tpl$');
+function smarty_templates() {
+ $templates = system_listing('^page\.tpl$', 'themes', 'filename');
$extra = variable_get('smarty_extra_templates', array());
$engine_code = variable_get('smarty_extra_logic', array());
Comments
Comment #1
lobo commentedi changed the code as recommended by tacker. I have not tested it.
Comment #2
(not verified) commented