mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -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:
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class user_block_Core {
|
||||
public static function head($theme) {
|
||||
static function head($theme) {
|
||||
// @todo: move this into the theme
|
||||
$user = user::active();
|
||||
if (!user::active()->guest) {
|
||||
@@ -27,7 +27,7 @@ class user_block_Core {
|
||||
}
|
||||
}
|
||||
|
||||
public static function header_top($theme) {
|
||||
static function header_top($theme) {
|
||||
$view = new View("login.html");
|
||||
$view->user = user::active();
|
||||
return $view->render();
|
||||
|
||||
Reference in New Issue
Block a user