Overhaul ADSL traffic reporting/graphing
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Company {
|
||||
public static $instance = array();
|
||||
|
||||
// Our Company Setup object
|
||||
private $so;
|
||||
|
||||
@@ -23,7 +25,12 @@ class Company {
|
||||
}
|
||||
|
||||
public static function instance() {
|
||||
return new Company(ORM::factory('Setup',array('url'=>URL::base('http'))));
|
||||
$x = URL::base('http');
|
||||
|
||||
if (! isset(Company::$instance[$x]))
|
||||
Company::$instance[$x] = new Company(ORM::factory('Setup',array('url'=>$x)));
|
||||
|
||||
return Company::$instance[$x];
|
||||
}
|
||||
|
||||
public function admin() {
|
||||
|
Reference in New Issue
Block a user