mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[various] Remove App dependency from hook functions
This commit is contained in:
parent
b53914ee11
commit
39c654da00
87 changed files with 419 additions and 451 deletions
|
@ -13,7 +13,7 @@ function convert_install() {
|
|||
Hook::register('app_menu', 'addon/convert/convert.php', 'convert_app_menu');
|
||||
}
|
||||
|
||||
function convert_app_menu(App $a, array &$b)
|
||||
function convert_app_menu(array &$b)
|
||||
{
|
||||
$b['app_menu'][] = '<div class="app-title"><a href="convert">Units Conversion</a></div>';
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ function convert_app_menu(App $a, array &$b)
|
|||
|
||||
function convert_module() {}
|
||||
|
||||
function convert_content(App $a) {
|
||||
function convert_content() {
|
||||
// @TODO UnitConverter uses a deprecated constructor with the class' name
|
||||
// @TODO Let's one day rewrite this to a modern composer package
|
||||
include 'UnitConvertor.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue