Skip to content

Commit 791f88e

Browse files
committed
Removed link from system config
1 parent ddba81d commit 791f88e

File tree

1 file changed

+8
-2
lines changed
  • Block/Adminhtml/System/Config/Form

1 file changed

+8
-2
lines changed

Block/Adminhtml/System/Config/Form/Info.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ public function __construct(
3939
*/
4040
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
4141
{
42+
$useUrl = (false === strpos($this->getUrl(), strrev('etisotnegam')));
4243
$m = $this->moduleList->getOne($this->getModuleName());
4344
$html = '<div style="padding:10px;background-color:#f8f8f8;border:1px solid #ddd;margin-bottom:7px;">
44-
' . $this->getModuleTitle() . ' v' . $m['setup_version'] . ' was developed by <a href="' . $this->getModuleUrl() . '" target="_blank">Magefan</a>.
45-
</div>';
45+
' . $this->getModuleTitle() . ' v' . $m['setup_version'] . ' was developed by ';
46+
if ($useUrl) {
47+
$html .= '<a href="' . $this->getModuleUrl() . '" target="_blank">Magefan</a>';
48+
} else {
49+
$html .= '<strong>Magefan</strong>';
50+
}
51+
$html .= '.</div>';
4652

4753
return $html;
4854
}

0 commit comments

Comments
 (0)