mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Set $kind = 'admin' if class name of action contains 'admin'
This commit is contained in:
parent
78d1b6966a
commit
4ac3d91ef0
1 changed files with 2 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ class ModuleHandler extends Handler
|
|||
$class_name = $xml_info->action->{$this->act}->class_name ?? null;
|
||||
$ruleset = $xml_info->action->{$this->act}->ruleset ?? null;
|
||||
$meta_noindex = $xml_info->action->{$this->act}->meta_noindex ?? null;
|
||||
$kind = stripos($this->act, 'admin') !== FALSE ? 'admin' : '';
|
||||
$kind = (stripos($this->act, 'admin') !== false || stripos($class_name, 'admin') !== false) ? 'admin' : '';
|
||||
if ($meta_noindex === 'true')
|
||||
{
|
||||
Context::addMetaTag('robots', 'noindex');
|
||||
|
|
@ -476,7 +476,7 @@ class ModuleHandler extends Handler
|
|||
|
||||
if(!empty($forward->module))
|
||||
{
|
||||
$kind = stripos($forward->act, 'admin') !== FALSE ? 'admin' : '';
|
||||
$kind = (stripos($forward->act, 'admin') !== false || stripos($forward->class_name, 'admin') !== false) ? 'admin' : '';
|
||||
$type = $forward->type;
|
||||
$ruleset = $forward->ruleset;
|
||||
$tpl_path = $oModule->getTemplatePath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue