Skip to content
Snippets Groups Projects
Commit 4fb559ee authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

re #3805

parent 1156c025
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
<input name="value" type="number" id="item-value"
value="<?= htmlReady($value) ?>">
<? elseif ($type === 'array') : ?>
<?php $v = version_compare(PHP_VERSION, '5.4.0', '>=') ? json_encode($value, JSON_UNESCAPED_UNICODE) : json_encode($value) ?>
<?php $v = json_encode($value, JSON_UNESCAPED_UNICODE) ?>
<textarea cols="80" rows="5" name="value" id="item-value"><?= htmlReady($v, true, true) ?></textarea>
<? elseif ($type === 'i18n'): ?>
<?= I18N::textarea('value', $value, [
......
......@@ -21,10 +21,7 @@
// SOFTWARE.
// set error reporting
error_reporting(E_ALL & ~E_NOTICE);
if (version_compare(phpversion(), '5.4', '>=')) {
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
}
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
// set include path
$inc_path = ini_get('include_path');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment