mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #217] Smarty modifiers want undefined DS constant #170
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dereckson on GitHub (Dec 28, 2016).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/217
Notice: Use of undefined constant DS - assumed 'DS' in /usr/local/vimbadmin/library/ViMbAdmin/Smarty/functions/modifier.date_formatter.php on line 47
if (DS == '\\') {When Smarty is correctly initialized, DS is the directory separator
As the application targets UNIX systems,
define('DS', DIRECTORY_SEPARATOR);seems safe to fix the issue.@dereckson commented on GitHub (May 18, 2020):
Root cause: DS constant has been removed in Smarty 3.1.31.
https://fossies.org/diffs/smarty/3.1.30_vs_3.1.31/libs/Smarty.class.php-diff.html