Permalink
Browse files

fixes #1, use the new value if form is submitted

  • Loading branch information...
plegall committed Sep 27, 2018
1 parent 7c4150c commit cdb5e90840c774d5ce2d353388fe48c4b5e841f5
Showing with 10 additions and 3 deletions.
  1. +10 −3 main.inc.php
View
@@ -38,10 +38,17 @@ function editfilename_modify($content, &$smarty)
add_event_handler('loc_end_picture_modify', 'editfilename_add_modify_vars_to_template');
function editfilename_add_modify_vars_to_template()
{
global $image_file, $template;
global $image_file, $template, $data;
$file_wo_ext = get_filename_wo_extension($image_file);
$ext = get_extension($image_file);
$filename = $image_file;
if (isset($data['file']))
{
// the filename has just been updated
$filename = $data['file'];
}
$file_wo_ext = get_filename_wo_extension($filename);
$ext = get_extension($filename);
$template->assign(
array(

0 comments on commit cdb5e90

Please sign in to comment.