Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
4f640589
Commit
4f640589
authored
Apr 03, 2019
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3108 - Важно - удаление лишних разделов из sitemao.xml
parent
a1b7eea0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
common/modules/documentation/controllers/DocumentationAdminController.php
...ocumentation/controllers/DocumentationAdminController.php
+0
-1
common/modules/documentation/models/DocContentLang.php
common/modules/documentation/models/DocContentLang.php
+0
-1
common/modules/documentation/views/documentation-admin/_form.php
...modules/documentation/views/documentation-admin/_form.php
+2
-2
No files found.
common/modules/documentation/controllers/DocumentationAdminController.php
View file @
4f640589
...
@@ -98,7 +98,6 @@ class DocumentationAdminController extends AdminController
...
@@ -98,7 +98,6 @@ class DocumentationAdminController extends AdminController
try
{
try
{
$model
->
attributes
=
Yii
::
$app
->
request
->
post
(
'DocContent'
);
$model
->
attributes
=
Yii
::
$app
->
request
->
post
(
'DocContent'
);
if
(
$model
->
save
())
{
if
(
$model
->
save
())
{
$transaction
->
commit
();
$transaction
->
commit
();
return
$this
->
redirect
([
'manage'
]);
return
$this
->
redirect
([
'manage'
]);
...
...
common/modules/documentation/models/DocContentLang.php
View file @
4f640589
...
@@ -11,7 +11,6 @@ use common\modules\languages\models\Languages;
...
@@ -11,7 +11,6 @@ use common\modules\languages\models\Languages;
* @property int $id
* @property int $id
* @property int $content_id
* @property int $content_id
* @property int $lang_id
* @property int $lang_id
* @property string $url
* @property string $name
* @property string $name
* @property string $markdown
* @property string $markdown
* @property string $html
* @property string $html
...
...
common/modules/documentation/views/documentation-admin/_form.php
View file @
4f640589
...
@@ -34,9 +34,9 @@ $defaultUrl = (
...
@@ -34,9 +34,9 @@ $defaultUrl = (
<?php
<?php
if
(
$defaultUrl
)
{
if
(
$defaultUrl
)
{
echo
$form
->
field
(
$
documentation
,
'url'
)
->
textInput
([
'value'
=>
$defaultUrl
,
'readonly'
=>
'readonly'
,
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
echo
$form
->
field
(
$
model
,
'url'
)
->
textInput
([
'value'
=>
$defaultUrl
,
'readonly'
=>
'readonly'
,
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
}
else
{
}
else
{
echo
$form
->
field
(
$
documentation
,
'url'
)
->
textInput
([
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
echo
$form
->
field
(
$
model
,
'url'
)
->
textInput
([
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
}
}
?>
?>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment