mirror of
https://github.com/friendica/friendica
synced 2024-12-22 12:40:15 +00:00
Fix docs for themes and theme_admin()
This commit is contained in:
parent
f254283dc6
commit
3c1599323b
3 changed files with 25 additions and 25 deletions
|
@ -341,13 +341,13 @@ function samplestorage_storage_uninstall()
|
||||||
DI::storageManager()->unregister(SampleStorageBackend::class);
|
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());
|
$config = new SampleStorageBackendConfig(DI::l10n(), DI::config());
|
||||||
$data['storage'] = new SampleStorageBackendConfig($config->getFileName());
|
$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());
|
$data['storage_config'] = new SampleStorageBackendConfig(DI::l10n(), DI::config());
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,9 +46,9 @@ The code will be something like:
|
||||||
// mod/network.php
|
// mod/network.php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\AppHelper;
|
||||||
|
|
||||||
function network_content(App $a) {
|
function network_content(AppHelper $appHelper) {
|
||||||
$itemsmanager = new \Friendica\ItemsManager();
|
$itemsmanager = new \Friendica\ItemsManager();
|
||||||
$items = $itemsmanager->getAll();
|
$items = $itemsmanager->getAll();
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ function theme_admin_post()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function theme_content(App $a): string
|
function theme_content(AppHelper $appHelper): string
|
||||||
{
|
{
|
||||||
if (!DI::userSession()->getLocalUserId()) {
|
if (!DI::userSession()->getLocalUserId()) {
|
||||||
return '';
|
return '';
|
||||||
|
@ -115,7 +115,7 @@ function theme_content(App $a): string
|
||||||
return frio_form($arr);
|
return frio_form($arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
function theme_admin(): string
|
function theme_admin(AppHelper $appHelper): string
|
||||||
{
|
{
|
||||||
if (!DI::userSession()->getLocalUserId()) {
|
if (!DI::userSession()->getLocalUserId()) {
|
||||||
return '';
|
return '';
|
||||||
|
|
Loading…
Reference in a new issue