Replace all functions from boot.php
This commit is contained in:
committed by
Hypolite Petovan
parent
5f1028a535
commit
5d8129600d
+2
-1
@@ -9,6 +9,7 @@
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\Session;
|
||||
use Friendica\DI;
|
||||
|
||||
function viewsrc_install()
|
||||
@@ -32,7 +33,7 @@ EOS;
|
||||
|
||||
function viewsrc_item_photo_menu(App $a, array &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
if (!Session::getLocalUser()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user