[Changed] clean code
This commit is contained in:
parent
48a598da51
commit
98ddc51a4d
@ -28,19 +28,17 @@ class WidgetControl extends WidgetControl_parent{
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
$sScriptName = $_SERVER['SCRIPT_NAME'];
|
$sScriptName = $_SERVER['SCRIPT_NAME'];
|
||||||
if($sScriptName != '/widget.php')
|
if($sScriptName !== '/widget.php')
|
||||||
{
|
{
|
||||||
return parent::getFrontendStartControllerKey();
|
return parent::getFrontendStartControllerKey();
|
||||||
}
|
}
|
||||||
|
|
||||||
$aParameter = $_GET;
|
$aParameter = $_GET;
|
||||||
if(is_null($aParameter['actcontrol'])
|
if(is_null($aParameter['actcontrol']) and is_null($aParameter['oxwparent']))
|
||||||
&& is_null($aParameter['actcontrol'])
|
|
||||||
&& is_null($aParameter['oxwparent'])
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
return 'D3\GoogleAnalytics4\Application\Component\Widget\d3GtmStartWidget';
|
return 'D3\GoogleAnalytics4\Application\Component\Widget\d3GtmStartWidget';
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::getFrontendStartControllerKey();
|
return parent::getFrontendStartControllerKey();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user