fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11852] property: remove debug


From: Sigurd Nes
Subject: [Fmsystem-commits] [11852] property: remove debug
Date: Fri, 21 Mar 2014 14:32:33 +0000

Revision: 11852
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11852
Author:   sigurdne
Date:     2014-03-21 14:32:33 +0000 (Fri, 21 Mar 2014)
Log Message:
-----------
property: remove debug

Modified Paths:
--------------
    trunk/property/inc/import/import_update_generic.php

Modified: trunk/property/inc/import/import_update_generic.php
===================================================================
--- trunk/property/inc/import/import_update_generic.php 2014-03-21 14:15:13 UTC 
(rev 11851)
+++ trunk/property/inc/import/import_update_generic.php 2014-03-21 14:32:33 UTC 
(rev 11852)
@@ -5,7 +5,7 @@
                public $messages = array();
                public $warnings = array();
                public $errors = array();
-               public $debug = true;
+               public $debug = false;
                protected $is_eav;
                protected $location_id;
                protected $bim_type_id = 0;
@@ -14,7 +14,7 @@
                protected $cat_id;
                protected $metadata = array();
 
-               public function __construct($location_id)
+               public function __construct($location_id, $debug = false)
                {
                        $location_id = (int) $location_id;
                        set_time_limit(10000); //Set the time limit for this 
request
@@ -27,6 +27,11 @@
                                throw new Exception("Not a valid location for 
{$location_id}");
                        }
 
+                       if($debug)
+                       {
+                               $this->debug = true;
+                       }
+
                        $this->is_eav = !!$category['is_eav'];
                        $this->location_id = $location_id;
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]