mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Replace all calls for App::setThemeInfoValue() with AppHelper
This commit is contained in:
parent
be193a236e
commit
2ac926dfb2
1 changed files with 5 additions and 5 deletions
|
@ -12,7 +12,8 @@
|
||||||
* Maintainer: Hypolite Petovan <https://friendica.mrpetovan.com/profile/hypolite>
|
* Maintainer: Hypolite Petovan <https://friendica.mrpetovan.com/profile/hypolite>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Friendica\App;
|
use Friendica\App\Mode;
|
||||||
|
use Friendica\AppHelper;
|
||||||
use Friendica\Content\Text\Plaintext;
|
use Friendica\Content\Text\Plaintext;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
|
@ -36,12 +37,12 @@ const FRIO_CUSTOM_SCHEME = '---';
|
||||||
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
|
* This script can be included even when the app is in maintenance mode which requires us to avoid any config call
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function frio_init(App $a)
|
function frio_init(AppHelper $appHelper)
|
||||||
{
|
{
|
||||||
global $frio;
|
global $frio;
|
||||||
$frio = 'view/theme/frio';
|
$frio = 'view/theme/frio';
|
||||||
|
|
||||||
$a->setThemeInfoValue('videowidth', 622);
|
$appHelper->setThemeInfoValue('videowidth', 622);
|
||||||
|
|
||||||
Renderer::setActiveTemplateEngine('smarty3');
|
Renderer::setActiveTemplateEngine('smarty3');
|
||||||
|
|
||||||
|
@ -179,13 +180,12 @@ function frio_contact_photo_menu(&$args)
|
||||||
* Some links will point to the local pages because the user would expect
|
* Some links will point to the local pages because the user would expect
|
||||||
* local page (these pages are: search, community, help, apps, directory).
|
* local page (these pages are: search, community, help, apps, directory).
|
||||||
*
|
*
|
||||||
* @param App $a The App class
|
|
||||||
* @param array $nav_info The original nav info array: nav, banner, userinfo, sitelocation
|
* @param array $nav_info The original nav info array: nav, banner, userinfo, sitelocation
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
function frio_remote_nav(array &$nav_info)
|
function frio_remote_nav(array &$nav_info)
|
||||||
{
|
{
|
||||||
if (DI::mode()->has(App\Mode::MAINTENANCEDISABLED)) {
|
if (DI::mode()->has(Mode::MAINTENANCEDISABLED)) {
|
||||||
// get the homelink from $_SESSION
|
// get the homelink from $_SESSION
|
||||||
$homelink = DI::userSession()->getMyUrl();
|
$homelink = DI::userSession()->getMyUrl();
|
||||||
if (!$homelink) {
|
if (!$homelink) {
|
||||||
|
|
Loading…
Reference in a new issue