Temp fix for setup .. it doesn't like the change from applications to phpgw_applications

This commit is contained in:
jengo 2001-02-08 21:46:41 +00:00
parent f0bafc4987
commit 53d641bd9a

View File

@ -207,9 +207,19 @@
return 4;
}
}else{
$this->db->query("select * from applications");
while (@$this->db->next_record()) {
if ($this->db->f("app_name") == "admin"){$phpgw_info["setup"]["oldver"]["phpgwapi"] = $this->db->f("app_version");}
$phpgw_info["setup"]["oldver"][$this->db->f("app_name")] = $this->db->f("app_version");
$phpgw_info["setup"][$this->db->f("app_name")]["title"] = $this->db->f("app_title");
}
if ($phpgw_info["setup"]["oldver"]["phpgwapi"] != $phpgw_info["server"]["versions"]["phpgwapi"]){
return 4;
} else {
$phpgw_info["setup"]["header_msg"] = "Stage 1 (Tables appear to be pre-beta)";
return 2;
}
}
}else{
/* no tables, so checking if we can create them */