Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion smarty_plugins/function.page.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function smarty_function_page($params, &$smarty)
$smarty->right_delimiter = '}}';

$smarty->assign("eval_str", $template_info["content"]);
$smarty->assign("page_name", $template_vars["nav_pages"][$current_page - 1]["page_name"]);
$smarty->assign("page_name", $template_vars["nav_pages"][(int)$current_page - 1]["page_name"]);
$smarty->assign("page_type", $page_type);

// used in the form action attribute. This'll cause nice "/" paths for index.php to get redirected to index.php on
Expand Down