X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=81bf2e10ee262e6beb59a465c2a4d16b1dfa8869;hb=e6bdb5d750ba341d3a74bbe15e88abdb99fa2401;hp=4399695215fed7e16bc0aeb6ef014dd588ec2c27;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index 43996952..81bf2e10 100644 --- a/applications/application.php +++ b/applications/application.php @@ -19,7 +19,7 @@ define('MENU_UPDATE', 'menu_update'); define('MENU_SETTINGS', 'menu_settings'); define('MENU_SYSTEM', 'menu_system'); - class menu_item + class menu_item { var $label; var $link; @@ -56,7 +56,7 @@ define('MENU_SYSTEM', 'menu_system'); var $label; var $link; var $access; - var $category; + var $category; function app_function($label,$link,$access='SA_OPEN',$category='') { @@ -85,7 +85,6 @@ define('MENU_SYSTEM', 'menu_system'); function add_lapp_function($label,$link="",$access='SA_OPEN',$category='') { $appfunction = new app_function($label,$link,$access,$category); - //array_push($this->lappfunctions,$appfunction); $this->lappfunctions[] = $appfunction; return $appfunction; } @@ -93,7 +92,6 @@ define('MENU_SYSTEM', 'menu_system'); function add_rapp_function($label,$link="",$access='SA_OPEN',$category='') { $appfunction = new app_function($label,$link,$access,$category); - //array_push($this->rappfunctions,$appfunction); $this->rappfunctions[] = $appfunction; return $appfunction; } @@ -120,7 +118,6 @@ define('MENU_SYSTEM', 'menu_system'); function add_module($name, $icon = null) { $module = new module($name,$icon); - //array_push($this->modules,$module); $this->modules[] = $module; return $module; } @@ -144,15 +141,7 @@ define('MENU_SYSTEM', 'menu_system'); // function report_class_url($class) { - global $installed_extensions; - - // TODO : konwencja lub ? - $classno = 7; -// if (file_exists($path_to_root.'/'.$mod['path'].'/'.$entry['url'] -// .'/'.'reporting/reports_custom.php')) - return "reporting/reports_main.php?Class=".$class; -// else -// return ''; + return "reporting/reports_main.php?Class=".$class; } }