mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 17:32:25 +02:00
No warning with new empty tpl file
git-svn-id: http://piwigo.org/svn/branches/2.2@11653 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -14,7 +14,7 @@ if ((isset($_POST['edit'])) and !is_numeric($_POST['file_to_edit']))
|
||||
}
|
||||
else
|
||||
{
|
||||
$content_file = "{* " . l10n('locfiledit_newfile') . " *}\n\n";
|
||||
$content_file = '';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ if (isset($_POST['create_tpl']))
|
||||
else
|
||||
{
|
||||
$edited_file = $_POST['tpl_parent'] . '/' . $filename;
|
||||
$content_file = ($_POST['tpl_model'] == '0') ? $new_file['tpl'] : file_get_contents($_POST['tpl_model']);
|
||||
$content_file = ($_POST['tpl_model'] == '0') ? '' : file_get_contents($_POST['tpl_model']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user