Skip to content

Use DIRECTORY_SEPARATOR instead of DS#218

Merged
barryo merged 1 commit intoopensolutions:masterfrom
dereckson:fix/DS
Jan 3, 2017
Merged

Use DIRECTORY_SEPARATOR instead of DS#218
barryo merged 1 commit intoopensolutions:masterfrom
dereckson:fix/DS

Conversation

@dereckson
Copy link
Copy Markdown
Contributor

The smarty_modifier_date_formatter function uses system path
to determine if the target OS is Windows.

PHP 4 introduced DIRECTORY_SEPARATOR, and DS isn't defined in
the current configuration and Smarty bootstrap process.

It so seems safe to switch to DIRECTORY_SEPARATOR.

Fixes #217.

The smarty_modifier_date_formatter function uses system path
to determine if the target OS is Windows.

PHP 4 introduced DIRECTORY_SEPARATOR, and DS isn't defined in
the current configuration and Smarty bootstrap process.

It so seems safe to switch to DIRECTORY_SEPARATOR.

Fixes opensolutions#217.
@barryo barryo merged commit 76f0371 into opensolutions:master Jan 3, 2017
@barryo
Copy link
Copy Markdown
Member

barryo commented Jan 3, 2017

Looks sane to me, thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants