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) : '',
CommentFileSizeAuthor
#2 smarty-compat-4.6.patch2.25 KBnsanity

Comments

Uwe Hermann’s picture

Please use diff -u for Drupal patches.

nsanity’s picture

StatusFileSize
new2.25 KB

Sorry about that. I've attached the patch file.

tclineks’s picture

Status: Active » Fixed

WIth recent updates 4.6 compatibility has been obtained.

tclineks’s picture

Version: » 4.6.x-1.x-dev
Status: Fixed » Closed (fixed)

closing

tclineks’s picture

Version: 4.6.x-1.x-dev » 4.5.x-1.x-dev

closing

olav’s picture

This is fixed with rewrite for 4.7.