mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-25 01:04:25 -04:00
Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
This commit is contained in:
@@ -21,7 +21,7 @@ class user_event_Core {
|
||||
/**
|
||||
* Initialization.
|
||||
*/
|
||||
public static function gallery_ready() {
|
||||
static function gallery_ready() {
|
||||
user::load_user();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user