Просмотр исходного кода

Ticket #4558 - Build-in API support: Different.

AntonLV 1 год назад
Родитель
Сommit
45be3dc21b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      template/scripts/BxBaseDashboardServices.php

+ 2 - 2
template/scripts/BxBaseDashboardServices.php

@@ -86,8 +86,8 @@ class BxBaseDashboardServices extends BxDol
                 $aData[] = array_merge([
                     'key' => $aModule['name'], 
                     'title' => $aModule['title'], 
-                    'add_url' => $CNF['URI_ADD_ENTRY'], 
-                    'url' => $oPermalink->permalink($CNF['URL_HOME']), 
+                    'add_url' => !empty($CNF['URI_ADD_ENTRY']) ? $CNF['URI_ADD_ENTRY'] : '', 
+                    'url' => !empty($CNF['URL_HOME']) ? $oPermalink->permalink($CNF['URL_HOME']) : '', 
                     'action' => 'views', 
                     'icon' => !empty($CNF['ICON']) ? $CNF['ICON'] : '', 
                     'type' => 'simple'