mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
검색엔진 수집이 불필요한 페이지에 대한 robots 메타 태그 추가
xpressengine/xe-core#2293 patch by @bnu
This commit is contained in:
parent
cb66b4e5df
commit
71651c0542
14 changed files with 77 additions and 59 deletions
|
|
@ -2,10 +2,10 @@
|
|||
<module>
|
||||
<grants />
|
||||
<actions>
|
||||
<action name="dispModuleSelectList" type="view" permission="all-managers" />
|
||||
<action name="dispModuleSkinInfo" type="view" permission="all-managers" />
|
||||
<action name="dispModuleFileBox" type="view" permission="root" />
|
||||
<action name="dispModuleFileBoxAdd" type="view" permission="root" />
|
||||
<action name="dispModuleSelectList" type="view" permission="all-managers" meta-noindex="true" />
|
||||
<action name="dispModuleSkinInfo" type="view" permission="all-managers" meta-noindex="true" />
|
||||
<action name="dispModuleFileBox" type="view" permission="root" meta-noindex="true" />
|
||||
<action name="dispModuleFileBoxAdd" type="view" permission="root" meta-noindex="true" />
|
||||
<action name="dispModuleChangeLang" type="mobile" />
|
||||
|
||||
<action name="getModuleSkinInfoList" type="model" permission="root" />
|
||||
|
|
|
|||
|
|
@ -949,6 +949,7 @@ class moduleModel extends module
|
|||
$ruleset = $action->attrs->ruleset?$action->attrs->ruleset:'';
|
||||
$method = $action->attrs->method?$action->attrs->method:'';
|
||||
$check_csrf = $action->attrs->check_csrf=='false'?'false':'true';
|
||||
$meta_noindex = $action->attrs->{'meta-noindex'} === 'true' ? 'true' : 'false';
|
||||
|
||||
$index = $action->attrs->index;
|
||||
$admin_index = $action->attrs->admin_index;
|
||||
|
|
@ -963,6 +964,7 @@ class moduleModel extends module
|
|||
$info->action->{$name}->ruleset = $ruleset;
|
||||
$info->action->{$name}->method = $method;
|
||||
$info->action->{$name}->check_csrf = $check_csrf;
|
||||
$info->action->{$name}->meta_noindex = $meta_noindex;
|
||||
if($action->attrs->menu_name)
|
||||
{
|
||||
$info->menu->{$action->attrs->menu_name} = new stdClass();
|
||||
|
|
@ -987,6 +989,7 @@ class moduleModel extends module
|
|||
$buff[] = sprintf('$info->action->%s->ruleset=\'%s\';', $name, $ruleset);
|
||||
$buff[] = sprintf('$info->action->%s->method=\'%s\';', $name, $method);
|
||||
$buff[] = sprintf('$info->action->%s->check_csrf=\'%s\';', $name, $check_csrf);
|
||||
$buff[] = sprintf('$info->action->%s->meta_noindex=\'%s\';', $name, $meta_noindex);
|
||||
|
||||
if($index=='true')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue