593f5b3aed
Fix deprecated dynamic property creation and week calculation in relativeTime function - Resolved deprecated warning by avoiding dynamic property creation on DateInterval object. - Calculated weeks separately and included them correctly in the output string. - Adjusted the logic to handle weeks within the string array without creating a dynamic property. - Ensured compatibility with PHP 8.2 and higher, where dynamic properties are deprecated. This fix prevents the "Deprecated: Creation of dynamic property DateInterval::$w is deprecated" warning and correctly formats the relative time string. |
||
---|---|---|
.. | ||
abstract | ||
admin | ||
ajax | ||
boot | ||
css | ||
helpers | ||
img | ||
js | ||
vendors/bootstrap-icons | ||
categories.class.php | ||
category.class.php | ||
functions.php | ||
language.class.php | ||
login.class.php | ||
pages.class.php | ||
pagex.class.php | ||
parsedown.class.php | ||
security.class.php | ||
site.class.php | ||
syslog.class.php | ||
tag.class.php | ||
tags.class.php | ||
url.class.php | ||
user.class.php | ||
users.class.php |