TASK-232 Deprecated the funcion encryptlink
This commit is contained in:
@@ -2519,20 +2519,11 @@ class Bootstrap
|
||||
}
|
||||
|
||||
/**
|
||||
* Encrypt URL DEPRECATED
|
||||
*
|
||||
* @author Fernando Ontiveros Lira <fernando@colosa.com>
|
||||
* @access public
|
||||
* @param string $urlLink
|
||||
* @return string
|
||||
* @deprecated Lurana v2, We keep this function only for backwards compatibility
|
||||
*/
|
||||
public function encryptlinkDeprecated($url)
|
||||
public function encryptlink($url)
|
||||
{
|
||||
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') {
|
||||
return urlencode(Bootstrap::encrypt($url, URL_KEY));
|
||||
} else {
|
||||
return $url;
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -770,20 +770,11 @@ class G
|
||||
}
|
||||
|
||||
/**
|
||||
* Encrypt URL DEPRECATED
|
||||
*
|
||||
* @author Fernando Ontiveros Lira <fernando@colosa.com>
|
||||
* @access public
|
||||
* @param string $urlLink
|
||||
* @return string
|
||||
* @deprecated Lurana v2, We keep this function only for backwards compatibility
|
||||
*/
|
||||
public static function encryptlink($url)
|
||||
public function encryptlink($url)
|
||||
{
|
||||
if (defined('ENABLE_ENCRYPT') && ENABLE_ENCRYPT == 'yes') {
|
||||
return urlencode(G::encrypt($url, URL_KEY));
|
||||
} else {
|
||||
return $url;
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user