瀏覽代碼

#3852 Logs: minor issues

Alex Trofimov 4 年之前
父節點
當前提交
e481d03307
共有 2 個文件被更改,包括 4 次插入 和 1 次删除
  1. 3 0
      inc/classes/BxDolLogs.php
  2. 1 1
      inc/classes/BxDolLogsStorageFolder.php

+ 3 - 0
inc/classes/BxDolLogs.php

@@ -23,6 +23,9 @@
  * - class_name: user defined class name which is derived from BxDolLogs.
  * - class_file: the location of the user defined class, leave it empty if class is located in system folders.
  * 
+ * It's also possible to not add record to sys_objects_logs table, 
+ * then it will use default settings for logging.
+ *
  * @section example Example of usage
  *
  * Log data to the logs object

+ 1 - 1
inc/classes/BxDolLogsStorageFolder.php

@@ -69,7 +69,7 @@ class BxDolLogsStorageFolder extends BxDolFactory implements iBxDolSingleton
         $s .= ' [' . (int)bx_get_logged_profile_id() . '] ';
 
         if (!empty($_SERVER['REQUEST_URI']))
-            $s .= $_SERVER['REQUEST_URI'] . (!empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '');
+            $s .= $_SERVER['REQUEST_URI'];
         elseif (defined('BX_DOL_CRON_EXECUTE'))
             $s .= 'CRON';
         else