Changes:
- added missing type-hints - avoided local variables - added some documentation - changed double-quotes to single
This commit is contained in:
parent
c0c15644a3
commit
06b15a6ed0
29 changed files with 191 additions and 204 deletions
|
@ -11,12 +11,14 @@ use Friendica\App;
|
|||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
function viewsrc_install() {
|
||||
function viewsrc_install()
|
||||
{
|
||||
Hook::register('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu');
|
||||
Hook::register('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end');
|
||||
}
|
||||
|
||||
function viewsrc_page_end(App $a, &$o){
|
||||
function viewsrc_page_end(App $a, string &$o)
|
||||
{
|
||||
DI::page()['htmlhead'] .= <<< EOS
|
||||
<script>
|
||||
$(function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue