Skip to content

Commit

Permalink
Merge branch 'issue94_smartyupdate' of https://github.com/flatpressbl…
Browse files Browse the repository at this point in the history
…og/flatpress into issue94_smartyupdate
  • Loading branch information
azett committed Jul 2, 2022
2 parents 247d63e + d4b9f3a commit 8bdb374
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@
## General
- Template engine Smarty updated to version 4.1.0 (see [#94](https://github.com/flatpressblog/flatpress/issues/94))
- From now on, FlatPress requires at least PHP 7.1!
- Please make sure your themes and plugins continue to work with the new Smarty version
- Added [SECURITY.md](https://github.com/flatpressblog/flatpress/blob/master/SECURITY.md)
- [README](https://github.com/flatpressblog/flatpress/blob/master/README.md): added "help and support" section

Expand Down
2 changes: 1 addition & 1 deletion fp-includes/core/core.system.php
Expand Up @@ -68,7 +68,7 @@ function system_hashsalt_save($force = false) {
return true;
}

define('SYSTEM_VER', '1.3.dev [master]');
define('SYSTEM_VER', '1.3.dev [smartyupdate]');

function system_ver() {
return 'fp-' . SYSTEM_VER;
Expand Down
15 changes: 15 additions & 0 deletions fp-includes/smarty-4.1.0/libs/plugins/function.comment_form.php
@@ -0,0 +1,15 @@
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* File: function.comment_form.php
* Type: function
* Name: commentform
* Purpose: print out the comment form
* -------------------------------------------------------------
*/
function smarty_function_comment_form($params, &$smarty)
{
return do_action('comment_form');
}
?>
2 changes: 1 addition & 1 deletion search.php
Expand Up @@ -142,7 +142,7 @@ function smarty_search_result($params, $content, &$smarty, &$repeat) {
// assign values to template
$smarty->assign('id', $id);
$post = $e;
+$smarty->assign($e);
$smarty->assign($e);
$repeat = true;
// advance pointer to next search result element
next($srchresults);
Expand Down

0 comments on commit 8bdb374

Please sign in to comment.