Fix docs for themes and theme_admin()

This commit is contained in:
Art4 2024-11-18 22:28:35 +00:00
parent f254283dc6
commit 3c1599323b
3 changed files with 25 additions and 25 deletions

View file

@ -341,13 +341,13 @@ function samplestorage_storage_uninstall()
DI::storageManager()->unregister(SampleStorageBackend::class);
}
function samplestorage_storage_instance(App $a, array &$data)
function samplestorage_storage_instance(AppHelper $appHelper, array &$data)
{
$config = new SampleStorageBackendConfig(DI::l10n(), DI::config());
$data['storage'] = new SampleStorageBackendConfig($config->getFileName());
}
function samplestorage_storage_config(App $a, array &$data)
function samplestorage_storage_config(AppHelper $appHelper, array &$data)
{
$data['storage_config'] = new SampleStorageBackendConfig(DI::l10n(), DI::config());
}

View file

@ -46,9 +46,9 @@ The code will be something like:
// mod/network.php
<?php
use Friendica\App;
use Friendica\AppHelper;
function network_content(App $a) {
function network_content(AppHelper $appHelper) {
$itemsmanager = new \Friendica\ItemsManager();
$items = $itemsmanager->getAll();

View file

@ -92,7 +92,7 @@ function theme_admin_post()
}
}
function theme_content(App $a): string
function theme_content(AppHelper $appHelper): string
{
if (!DI::userSession()->getLocalUserId()) {
return '';
@ -115,7 +115,7 @@ function theme_content(App $a): string
return frio_form($arr);
}
function theme_admin(): string
function theme_admin(AppHelper $appHelper): string
{
if (!DI::userSession()->getLocalUserId()) {
return '';