Fixed it not loading properly, due to last nights changes to how classes are loaded

This commit is contained in:
jengo 2001-01-11 15:33:23 +00:00
parent ace2ca59ce
commit 3e2952ece1
2 changed files with 11 additions and 3 deletions

View File

@ -18,9 +18,17 @@
var $cats;
var $db;
function categories($account_id,$app_name)
function categories($account_id = "",$app_name = "")
{
global $phpgw;
global $phpgw, $phpgw_info;
if (! $account_id) {
$account_id = $phpgw_info["user"]["account_id"];
}
if (! $app_name) {
$app_name = $phpgw_info["flags"]["currentapp"];
}
$this->account_id = $account_id;
$this->app_name = $app_name;
$this->db = $phpgw->db;

View File

@ -128,7 +128,7 @@
$sep = filesystem_separator();
$template_root = $this->common->get_tpl_dir();
if (is_dir($template_root)) {
if (is_dir($template_root)) {
$this->template = CreateObject("phpgwapi.Template", $template_root);
}
}