Skip to content

Commit

Permalink
Merge pull request #4254 from pavog/patch-2
Browse files Browse the repository at this point in the history
Only use AboutApp when the setting "setting.app_about" is set
  • Loading branch information
jbrooksuk committed Apr 1, 2021
2 parents 3c2479d + d5ba835 commit a86a3d8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Composers/AppComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,13 @@ public function __construct(DateFactory $dates, Repository $config)
*/
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'));
Expand Down

0 comments on commit a86a3d8

Please sign in to comment.