From 52d19d5c1dc77e3e898577a2075baefb356aedf7 Mon Sep 17 00:00:00 2001 From: buddha87 Date: Wed, 28 Dec 2016 13:31:33 +0100 Subject: [PATCH] Fixed #2169 removed Tour/CoreJSConfig and Trackingwidget in LayoutAddons. --- protected/humhub/widgets/LayoutAddons.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/protected/humhub/widgets/LayoutAddons.php b/protected/humhub/widgets/LayoutAddons.php index 1ec0a28ed0..4cc51a47dc 100644 --- a/protected/humhub/widgets/LayoutAddons.php +++ b/protected/humhub/widgets/LayoutAddons.php @@ -26,8 +26,12 @@ class LayoutAddons extends BaseStack { $this->addWidget(GlobalModal::className()); $this->addWidget(GlobalConfirmModal::className()); - $this->addWidget(\humhub\modules\tour\widgets\Tour::className()); - $this->addWidget(\humhub\modules\admin\widgets\TrackingWidget::className()); + + if(Yii::$app->params['installed']) { + $this->addWidget(\humhub\modules\tour\widgets\Tour::className()); + $this->addWidget(\humhub\modules\admin\widgets\TrackingWidget::className()); + } + $this->addWidget(LoaderWidget::className(), ['show' => false, 'id' => "humhub-ui-loader-default"]); $this->addWidget(StatusBar::className()); $this->addWidget(BlueimpGallery::className());