config migration in source code; config page is not needed anymore
[iserv-mod-error-reporter.git] / inc / class_erErrorReportView.inc
index e335881..590205e 100644 (file)
@@ -35,8 +35,6 @@ require_once("format.inc");
 
 /** @todo document */
 class erErrorReportView {
-  /** (erConfig) pointer to the configuration class */
-  protected $objcfg;
   /** (erErrorReportManager) pointer to a erErrorReportManager instance */
   protected $objManager;
   /**
@@ -54,14 +52,11 @@ class erErrorReportView {
   
   /**
    * Constructor
-   * @param $objcfg (erConfig) Pointer to an instance of the erConfig class for
-   *  retrieving the configuration data
    * @param $objemm (erErrorReportManager) Pointer to a instance of the
    *  erErrorReportManager class for retrieving the document data
    * @return erErrorReportView
    */
-  public function __construct(erConfig &$objcfg, erErrorReportManager &$objemm) {
-    $this->objcfg = $objcfg;
+  public function __construct(erErrorReportManager &$objemm) {
     $this->objManager = $objemm;
     html_header("<style type='text/css'>
       table.errors-view-table { width:100%; border:2px solid #5276AB; }
@@ -100,7 +95,7 @@ class erErrorReportView {
     $sColor = sprintf("rgb(%d,%d,%d)", ($nColor >> 16) % 256,
       ($nColor >> 8) % 256, $nColor % 256);
     echo "<tr style='background-color:$sColor'>";
-    if($this->objcfg->userIsAdmin() or 
+    if(erConfig::userIsAdmin() or 
       $this->objManager->userIsOwner($objem->getUid())) {
       // user is admin or owner
       echo "<td style='padding:3px'><{$GLOBALS["invtbl"]} width='100%'>\n";
This page took 0.019647 seconds and 4 git commands to generate.