changeset 77:fcfd635d7abf

Oops, fix format string callback functions ..
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 14 Sep 2016 20:57:30 +0300
parents f2e923f84e1b
children b7f2e643279f
files mgallery.inc.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mgallery.inc.php	Wed Sep 14 18:14:31 2016 +0300
+++ b/mgallery.inc.php	Wed Sep 14 20:57:30 2016 +0300
@@ -299,7 +299,7 @@
       $vtmp = $val;
 
     if (is_callable($func))
-      $val = call_user_func($func, $vtmp);
+      $vtmp = call_user_func($func, $vtmp);
 
     $str = str_replace("%".$i, $vtmp, $str);
   }