mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Changes:
- added more type-hints - cleaned up some files (curly braces, spaces)
This commit is contained in:
parent
a1e17968d1
commit
04df7f6e05
74 changed files with 603 additions and 529 deletions
|
@ -6,6 +6,8 @@
|
|||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*/
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\DI;
|
||||
|
||||
|
@ -14,7 +16,7 @@ function viewsrc_install() {
|
|||
Hook::register('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end');
|
||||
}
|
||||
|
||||
function viewsrc_page_end(&$a, &$o){
|
||||
function viewsrc_page_end(App $a, &$o){
|
||||
DI::page()['htmlhead'] .= <<< EOS
|
||||
<script>
|
||||
$(function(){
|
||||
|
@ -26,7 +28,7 @@ function viewsrc_page_end(&$a, &$o){
|
|||
EOS;
|
||||
}
|
||||
|
||||
function viewsrc_item_photo_menu(&$a, &$b)
|
||||
function viewsrc_item_photo_menu(App $a, array &$b)
|
||||
{
|
||||
if (!local_user()) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue