Use of undefined constant DS - assumed 'DS'

Phoca Gallery - image gallery extension
caro23
Phoca Member
Phoca Member
Posts: 22
Joined: 12 Jul 2008, 17:15

Use of undefined constant DS - assumed 'DS'

Post 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!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply