mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
"allow to use link, redirect, redirect_link, invalidate_session_cache static"
This commit is contained in:
parent
689ffe18a9
commit
a5b58e57e8
@ -357,7 +357,7 @@ class egw extends egw_minimal
|
||||
* Needs to be called if user-preferences, system-config or enabled apps of the current user have been changed and
|
||||
* the change should have immediate effect
|
||||
*/
|
||||
function invalidate_session_cache()
|
||||
static function invalidate_session_cache()
|
||||
{
|
||||
unset($_SESSION['egw_info_cache']);
|
||||
unset($_SESSION['egw_object_cache']);
|
||||
@ -369,7 +369,7 @@ class egw extends egw_minimal
|
||||
* @param string $s
|
||||
* @return string The string with html special characters replaced with entities
|
||||
*/
|
||||
function strip_html($s)
|
||||
static function strip_html($s)
|
||||
{
|
||||
return htmlspecialchars(stripslashes($s));
|
||||
}
|
||||
@ -381,9 +381,9 @@ class egw extends egw_minimal
|
||||
* @param string/array $extravars Extra params to be passed to the url
|
||||
* @return string The full url after processing
|
||||
*/
|
||||
function link($url = '', $extravars = '')
|
||||
static function link($url = '', $extravars = '')
|
||||
{
|
||||
return $this->session->link($url, $extravars);
|
||||
return $GLOBALS['egw']->session->link($url, $extravars);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -393,9 +393,9 @@ class egw extends egw_minimal
|
||||
* @param string/array $extravars Extra params to be passed to the url
|
||||
* @return string The full url after processing
|
||||
*/
|
||||
function redirect_link($url = '',$extravars='')
|
||||
static function redirect_link($url = '',$extravars='')
|
||||
{
|
||||
$this->redirect($this->session->link($url, $extravars));
|
||||
self::redirect($GLOBALS['egw']->session->link($url, $extravars));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -405,7 +405,7 @@ class egw extends egw_minimal
|
||||
*
|
||||
* @param string The url ro redirect to
|
||||
*/
|
||||
function redirect($url = '')
|
||||
static function redirect($url = '')
|
||||
{
|
||||
/* global $HTTP_ENV_VARS; */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user