mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
formatting, globals
This commit is contained in:
parent
b78953097a
commit
e6eb32d36f
@ -9,11 +9,11 @@
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\***************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
class bolog
|
||||
{
|
||||
|
||||
var $public_functions = array
|
||||
(
|
||||
'read_log' => True
|
||||
@ -21,7 +21,6 @@
|
||||
|
||||
function bolog($session=False)
|
||||
{
|
||||
global $phpgw;
|
||||
$this->so = CreateObject('admin.solog');
|
||||
}
|
||||
|
||||
|
@ -29,8 +29,7 @@
|
||||
|
||||
function solog()
|
||||
{
|
||||
global $phpgw;
|
||||
$this->db = $phpgw->db;
|
||||
$this->db = $GLOBALS['phpgw']->db;
|
||||
}
|
||||
|
||||
function get_error_cols()
|
||||
@ -108,14 +107,16 @@
|
||||
}
|
||||
|
||||
function get_no_errors()
|
||||
{ /* Get max ErrorId */
|
||||
{
|
||||
/* Get max ErrorId */
|
||||
$this->db->query("select count(*) as max_id from phpgw_log, phpgw_log_msg WHERE phpgw_log.log_id = phpgw_log_msg.log_msg_log_id",__LINE__,__FILE__);
|
||||
$this->db->next_record();
|
||||
return $this->db->f('max_id');
|
||||
}
|
||||
|
||||
function get_error($parms)
|
||||
{ /* Get parameter values */
|
||||
{
|
||||
/* Get parameter values */
|
||||
$from = $parms['from'];
|
||||
$where = $parms['where'];
|
||||
$orderby = $parms['orderby'];
|
||||
|
@ -15,8 +15,6 @@
|
||||
{
|
||||
function uimenuclass()
|
||||
{
|
||||
global $phpgw, $phpgw_info;
|
||||
|
||||
$this->t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('admin'));
|
||||
|
||||
$this->t->set_file(array('menurow' => 'menurow.tpl'));
|
||||
@ -29,7 +27,7 @@
|
||||
|
||||
function section_item($pref_link='',$pref_text='', $bgcolor)
|
||||
{
|
||||
global $phpgw, $phpgw_info, $t;
|
||||
global $t;
|
||||
|
||||
$this->t->set_var('row_link',$pref_link);
|
||||
$this->t->set_var('row_text',$pref_text);
|
||||
@ -44,7 +42,7 @@
|
||||
// This allows extra data to be sent along
|
||||
function display_section($_menuData)
|
||||
{
|
||||
global $phpgw, $phpgw_info, $account_id;
|
||||
global $account_id;
|
||||
|
||||
$i=0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user