Two statically called functions view::load and view::load_views are missing the static keyword. If you have PHP 5.3 and strict standards enabled, this causes a warning.
I've attached a patch which fixes this. It's my first patch, so someone please tell me if I've got the format wrong in some way!
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | view_statics.patch | 530 bytes | dawehner |
| view_statics.patch | 858 bytes | xgretsch |
Comments
Comment #1
merlinofchaos commentedYeah I guess in D7 we're PHP 5 only, so we can step away from the PHP4 standards that have made this unfixable in D6.
Comment #2
dawehnerand commited.
Aren't there other places where something is statically called?
Comment #3
xgretsch commentedProbably. There are certainly some other strict warnings to do with passing things by reference that shouldn't be. As and when I come across them, I'll submit fixes if I'm able to.
Comment #4
dawehnerupdate version.
Figure out, whether there are other places.
Comment #5
xgretsch commentedFound another one: view::db_objects() view.inc line 1310
Comment #6
dawehnerHere is one.
Comment #7
dawehnerAnd commited.