include_once($path_to_root . '/installed_extensions.php');
class front_accounting
- {
+ {
var $user;
var $settings;
var $applications;
{
}
function add_application(&$app)
- {
- if ($app->enabled) // skip inactive modules
- $this->applications[$app->id] = &$app;
- }
+ {
+ if ($app->enabled) // skip inactive modules
+ $this->applications[$app->id] = &$app;
+ }
function get_application($id)
- {
- if (isset($this->applications[$id]))
- return $this->applications[$id];
- return null;
- }
+ {
+ if (isset($this->applications[$id]))
+ return $this->applications[$id];
+ return null;
+ }
function get_selected_application()
{
if (isset($this->selected_application))
$this->add_application(new setup_app());
}
-}
+ }