koblog/bl-kernel
basteyy 593f5b3aed
Update pagex.class.php
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.
2024-07-06 23:05:51 +02:00
..
abstract bludit v3.15.0 2023-07-15 15:59:51 +02:00
admin after save content redirect to the proper tab to avoid confusion if the content was created or not #1541 2024-06-30 21:59:24 +02:00
ajax fix: page upload symlink 2024-06-23 21:46:43 +02:00
boot fix: page upload symlink 2024-06-23 21:46:43 +02:00
css bludit v3.15.0 2023-07-15 15:59:51 +02:00
helpers add telegram support #1565 2024-06-30 21:48:29 +02:00
img Move images to bl-kernel folder #981 2019-03-07 16:13:47 +01:00
js bludit v3.15.0 2023-07-15 15:59:51 +02:00
vendors/bootstrap-icons bludit v3.15.0 2023-07-15 15:59:51 +02:00
categories.class.php include sticky and static pages to the categories 2019-02-28 19:44:46 +01:00
category.class.php Get categories via the API 2019-05-12 12:32:12 +02:00
functions.php fix: password length when changed user password 2024-06-22 16:34:24 +02:00
language.class.php check extension and path traversal 2019-03-10 18:27:24 +01:00
login.class.php chore: add prettierrc and dir=auto to form inputs 2024-06-22 16:22:05 +02:00
pages.class.php Update pages.class.php 2024-07-06 23:03:12 +02:00
pagex.class.php Update pagex.class.php 2024-07-06 23:05:51 +02:00
parsedown.class.php Update parsedown 1.7.3 -> 1.7.4 2020-01-01 16:24:11 +05:30
security.class.php Remove use of headers that can be used to bypass anti-brute force controls 2019-10-05 18:22:25 +01:00
site.class.php add telegram support #1565 2024-06-30 21:48:29 +02:00
syslog.class.php fix typos 2020-06-03 23:59:07 -07:00
tag.class.php API improves 2019-02-19 08:38:17 +01:00
tags.class.php Bug fix for PHP 5.6 when upload images 2019-05-29 19:28:11 +02:00
url.class.php fix typos 2020-06-03 23:59:07 -07:00
user.class.php add telegram support #1565 2024-06-30 21:48:29 +02:00
users.class.php rollback users with no-casesensitive 2020-07-13 20:36:11 +02:00