@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | /* @var $this \yii\web\View */ |
24 | 24 | /* @var $content string */ |
25 | 25 | |
26 | -$this->title .= ' - ' . getenv('APP_TITLE'); |
|
27 | -$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '') . $this->title; |
|
26 | +$this->title .= ' - '.getenv('APP_TITLE'); |
|
27 | +$this->title = (getenv('APP_PAGES_TITLE_PREFIX') ?? '').$this->title; |
|
28 | 28 | |
29 | 29 | SettingsAsset::register($this); |
30 | 30 | |
@@ -32,18 +32,18 @@ discard block |
||
32 | 32 | \yii\base\Event::on( |
33 | 33 | \yii\web\View::className(), |
34 | 34 | \yii\web\View::EVENT_AFTER_RENDER, |
35 | - function ($e) { |
|
35 | + function($e) { |
|
36 | 36 | // disable unbundled asset |
37 | - $e->sender->assetBundles['yii\\bootstrap\\BootstrapAsset'] = null; |
|
37 | + $e->sender->assetBundles[ 'yii\\bootstrap\\BootstrapAsset' ] = null; |
|
38 | 38 | // disable bundled asset |
39 | - $e->sender->assetBundles['bootstrap'] = null; |
|
39 | + $e->sender->assetBundles[ 'bootstrap' ] = null; |
|
40 | 40 | } |
41 | 41 | ); |
42 | 42 | } |
43 | 43 | |
44 | 44 | // Favicon |
45 | 45 | if ($favicon = \Yii::$app->settings->get('faviconPng', 'app.assets', null)) { |
46 | - $this->registerLinkTag(['rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon]); |
|
46 | + $this->registerLinkTag([ 'rel' => 'shortcut icon', 'type' => 'image/png', 'href' => $favicon ]); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | ?> |