Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Kohana environment values are illogical #238
Right now the following statement is false:
The values should be switched so they make logical sense when being used in an integer comparison.
The change cleans up the following code:
-1, to me, production as
My point was mostly that you can think of it in a few different ways ;)
Closing for now. Also want to point out that putting these things into a config and loading different configs based on environment will remove the need to make the comparisons all over your code. There are a few ways to do this and my preferred one is to simply load a config group based on the environment so I can replace any config item on a specific environment. This also works much better in