mirror of
https://github.com/processwire/processwire.git
synced 2025-08-08 07:47:00 +02:00
Add PR #291 - remove php version check for strftime call in WireDateTime
This commit is contained in:
@@ -421,7 +421,7 @@ class WireDateTime extends Wire {
|
||||
$value = $this->relativeTimeStr($ts, 1, false);
|
||||
} else if($format == 'ts') {
|
||||
$value = $ts;
|
||||
} else if(strpos($format, '%') !== false && version_compare(PHP_VERSION, '8.1.0', '<')) {
|
||||
} else if(strpos($format, '%') !== false) {
|
||||
$value = $this->strftime($format, $ts);
|
||||
} else {
|
||||
$value = date($format, $ts);
|
||||
|
@@ -2937,7 +2937,7 @@ function InputfieldReloadEvent(event, extraData) {
|
||||
var $content;
|
||||
if(data.indexOf('{') === 0) {
|
||||
data = JSON.parse(data);
|
||||
console.log(data);
|
||||
// console.log(data);
|
||||
$content = '';
|
||||
} else {
|
||||
$content = jQuery(data).find("#" + id).children(".InputfieldContent");
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user