mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 07:28:43 +01:00
GLOBALS; remove uneeded class vars in common (I hope)
This commit is contained in:
parent
2ab805ebe6
commit
db074c4dd7
@ -41,9 +41,6 @@
|
||||
*/
|
||||
class common
|
||||
{
|
||||
var $phpgw;
|
||||
var $iv = '';
|
||||
var $key = '';
|
||||
var $crypto;
|
||||
var $debug_info; // An array with debugging info from the API
|
||||
|
||||
@ -1022,7 +1019,6 @@
|
||||
// Note: $no_permission_check should *ONLY* be used when it *HAS* to be. (jengo)
|
||||
function hook($location, $order = '', $no_permission_check = False)
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
if ($order == '')
|
||||
{
|
||||
settype($order,'array');
|
||||
@ -1088,7 +1084,6 @@
|
||||
// Note: $no_permission_check should *ONLY* be used when it *HAS* to be. (jengo)
|
||||
function hook_single($location, $appname = '', $no_permission_check = False)
|
||||
{
|
||||
global $phpgw, $phpgw_info, $PHP_VERSION;
|
||||
if (! $appname)
|
||||
{
|
||||
$appname = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
|
@ -30,13 +30,12 @@
|
||||
|
||||
function config($appname = '')
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
if (! $appname)
|
||||
{
|
||||
$appname = $phpgw_info['flags']['currentapp'];
|
||||
$appname = $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
}
|
||||
|
||||
$this->db = $phpgw->db;
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
$this->appname = $appname;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user