Changed alias in site-view and custom-admin-view to codename so we can have views with the same names in different components, added warning notice if custom code can't be added, Bug fixes in the demo content dates

This commit is contained in:
2017-02-04 02:22:17 +02:00
parent e0efef54e9
commit 3497de7c28
307 changed files with 805 additions and 821 deletions

View File

@ -1295,7 +1295,7 @@ class Get
$view->default = base64_decode($view->default);
$view->default = $this->setCustomContentLang($view->default);
// fix alias to use in code
$view->code = $this->uniqueCode(ComponentbuilderHelper::safeString($view->alias));
$view->code = $this->uniqueCode(ComponentbuilderHelper::safeString($view->codename));
$view->Code = ComponentbuilderHelper::safeString($view->code, 'F');
$view->CODE = ComponentbuilderHelper::safeString($view->code, 'U');
// insure the uikit components are loaded
@ -2985,8 +2985,8 @@ class Get
else
{
return array(
'start' => '',
'end' => '');
'start' => "\t\t//////////////////////////////////////////",
'end' => "\t\t//////////////////////////////////////////");
}
break;
case 2:
@ -3000,8 +3000,8 @@ class Get
else
{
return array(
'start' => '',
'end' => '');
'start' => "\t\t//////////////////////////////////////////",
'end' => "\t\t//////////////////////////////////////////");
}
break;
}