Prechádzať zdrojové kódy

Enabled KPI tracing for the export page... fixed regression on the setup page (rewrote the change in a much more defensive way)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3071 a333f486-631f-4898-b8df-5754b55c2be0
romainq 11 rokov pred
rodič
commit
56f89162a3

+ 4 - 1
application/clipage.class.inc.php

@@ -39,7 +39,10 @@ class CLIPage implements Page
         {
             MetaModel::RecordQueryTrace();
         }
-        ExecutionKPI::ReportStats();
+        if (class_exists('ExecutionKPI'))
+        {
+            ExecutionKPI::ReportStats();
+        }
     }
 
 	public function add($sText)

+ 3 - 0
application/csvpage.class.inc.php

@@ -50,6 +50,9 @@ class CSVPage extends WebPage
         if (class_exists('MetaModel'))
         {
             MetaModel::RecordQueryTrace();
+        }
+        if (class_exists('ExecutionKPI'))
+        {
             ExecutionKPI::ReportStats();
         }
     }

+ 3 - 0
application/webpage.class.inc.php

@@ -491,6 +491,9 @@ class WebPage implements Page
         if (class_exists('MetaModel'))
         {
             MetaModel::RecordQueryTrace();
+        }
+        if (class_exists('ExecutionKPI'))
+        {
             ExecutionKPI::ReportStats();
         }
     }