Merge pull request #4254 from pavog/patch-2

Only use AboutApp when the setting "setting.app_about" is set
This commit is contained in:
James Brooks
2021-04-01 15:47:41 +01:00
committed by GitHub

View File

@@ -61,7 +61,13 @@ class AppComposer
*/
public function compose(View $view)
{
$view->withAboutApp(Markdown::convertToHtml($this->config->get('setting.app_about')));
if ($this->config->get('setting.app_about')) {
$about = Markdown::convertToHtml($this->config->get('setting.app_about'));
} else {
$about = '';
}
$view->withAboutApp($about);
$view->withAppAnalytics($this->config->get('setting.app_analytics'));
$view->withAppAnalyticsGoSquared($this->config->get('setting.app_analytics_gs'));
$view->withAppAnalyticsPiwikUrl($this->config->get('setting.app_analytics_piwik_url'));