Page 1 of 1

Use of undefined constant DS - assumed 'DS'

Posted: 11 Jan 2015, 09:26
by caro23
Hi Jan,
I post this in PG forum, however, this seems to affect other extensions as well.
I get a strict warning for the DS constant:

Code: Select all

Use of undefined constant DS - assumed 'DS'
This leads to some follow-up errors, e.g. linking an image in the opengraph plugin.

DS has been marked deprecated in J3 and was removed in J3.2 since PHP can handle the separators of all OS.
Can you please consider this in future developments?
Dirty: redefine the DS constant. Better: new code for J3.2+.

Thanks in advance!

Re: Use of undefined constant DS - assumed 'DS'

Posted: 12 Jan 2015, 21:26
by Jan
Hi, where do you get it exactly?

Anyway, in most of Phoca extensions, I have added the redefining the DS constant as in fact it is not possible to set it other way so fast (there are over hundred of thousands lines of code which need to be checked). So first I did it so, it will work, then of course I will replace it by standard "/" which I do by new coding.

Jan