TASK-232 Change encryt with URL_KEY and Deprecate encryptlink
This commit is contained in:
@@ -36,17 +36,11 @@ class XmlFormFieldToolButton extends XmlFormField
|
||||
public function render($value = null, $paramDummy2 = null)
|
||||
{
|
||||
$url = $this->file;
|
||||
if ($this->home === "methods") {
|
||||
$url = G::encryptlink(SYS_URI . $url);
|
||||
}
|
||||
if ($this->home === "public_html") {
|
||||
$url = '/' . $url;
|
||||
}
|
||||
$urlAlt = $this->fileAlt;
|
||||
if ($this->fileAlt !== '') {
|
||||
if ($this->home === "methods") {
|
||||
$urlAlt = G::encryptlink(SYS_URI . $urlAlt);
|
||||
}
|
||||
if ($this->home === "public_html") {
|
||||
$urlAlt = '/' . $urlAlt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user