Here is a patch to make it work with 4.6
45,46c45,46
< function smarty_templates($directory) {
< $templates = file_scan_directory($directory, 'page.tpl$');
---
> function smarty_templates() {
> $templates = system_listing('^page\.tpl$', 'themes', 'filename');
63c63
< return $templates;
---
> return $templates;
133c133
< $primary_links = link_page();
---
> $primary_links = theme_get_setting('primary links');
212c212
< $links = link_node($node, $main);
---
>
222c222
< 'links' => ($links != '') ? theme('links', $links) : '',
---
> 'links' => ($node->links != '') ? theme('links', $node->links) : '',
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | smarty-compat-4.6.patch | 2.25 KB | nsanity |
Comments
Comment #1
Uwe Hermann commentedPlease use
diff -ufor Drupal patches.Comment #2
nsanity commentedSorry about that. I've attached the patch file.
Comment #3
tclineks commentedWIth recent updates 4.6 compatibility has been obtained.
Comment #4
tclineks commentedclosing
Comment #5
tclineks commentedclosing
Comment #6
olav commentedThis is fixed with rewrite for 4.7.