Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constants may only evaluate to scalar values #91

Closed
johnstray opened this issue Aug 7, 2016 · 0 comments
Closed

Constants may only evaluate to scalar values #91

johnstray opened this issue Aug 7, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@johnstray
Copy link
Owner

johnstray commented Aug 7, 2016

PHP Warning: Constants may only evaluate to scalar values in /plugins/gs-blog.php on line 19

Offending line:

define('BLOGLANGUAGE',i18n_r(BLOGFILE.'/LANGUAGE_CODE'));

Cause:
The "LANGUAGE_CODE" variable in the language files is made up of an array of different ways to write a language's code. This was done for the benefit of date handling functions.

Fix:
Add an array iterator(?) to the define() - "[0]"

@johnstray johnstray added the Bug label Aug 7, 2016
@johnstray johnstray added this to the Version 3.4.2 milestone Aug 7, 2016
@johnstray johnstray self-assigned this Aug 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant