mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Move L10n::t() calls to DI::l10n()->t() calls
This commit is contained in:
parent
af88c2daa3
commit
5dfee31108
175 changed files with 2841 additions and 2841 deletions
|
@ -41,14 +41,14 @@ class Help extends BaseModule
|
|||
$title = basename($path);
|
||||
$filename = $path;
|
||||
$text = self::loadDocFile('doc/' . $path . '.md', $lang);
|
||||
DI::page()['title'] = L10n::t('Help:') . ' ' . str_replace('-', ' ', Strings::escapeTags($title));
|
||||
DI::page()['title'] = DI::l10n()->t('Help:') . ' ' . str_replace('-', ' ', Strings::escapeTags($title));
|
||||
}
|
||||
|
||||
$home = self::loadDocFile('doc/Home.md', $lang);
|
||||
if (!$text) {
|
||||
$text = $home;
|
||||
$filename = "Home";
|
||||
DI::page()['title'] = L10n::t('Help');
|
||||
DI::page()['title'] = DI::l10n()->t('Help');
|
||||
} else {
|
||||
DI::page()['aside'] = Markdown::convert($home, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue