Piotr Labudda 11 лет назад
Родитель
Сommit
a667041dd3
3 измененных файлов с 5 добавлено и 2 удалено
  1. 1 1
      SE/VERSION
  2. 3 1
      SE/se-lib/FileUploader.php
  3. 1 0
      SE/se-lib/Typespecial.php

+ 1 - 1
SE/VERSION

@@ -1 +1 @@
-3.9.9-16
+3.9.9-17

+ 3 - 1
SE/se-lib/FileUploader.php

@@ -118,7 +118,8 @@ class FileUploader {
 			return false;
 		} else {
 			foreach ($foundFolders as $vFolder) {
-				$this->_foundFolders []= end(explode('/', $vFolder));
+				$vFolderParts = explode('/', $vFolder);
+				$this->_foundFolders[] = end($vFolderParts);
 			}
 		}
 		if($DBG){ echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;">this->_foundFolders (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($this->_foundFolders);echo'</pre>'."\n"; }
@@ -276,6 +277,7 @@ class FileUploader {
 	}
 
 	public function getFileSearchRegex() {
+		$DBG = false;
 		$look = new stdClass();
 		if ($this->_cnf['LOOKAT_FILES']) {
 			//$look->regex = V::get('LOOK_REGEX', '', $this->_cnf['LOOKAT_FOLDER']);

+ 1 - 0
SE/se-lib/Typespecial.php

@@ -795,6 +795,7 @@ jQuery('#typeahead-{$fName}').typeahead({
 if(V::get('DBG_TS', 0, $_GET) > 1){echo'<pre style="max-height:200px;overflow:auto;border:1px solid orange;text-align:left;">sqlTablesInfo (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($_SESSION['Typespecial_Cache']['sqlTablesInfo']);echo'</pre>';}// TODO: RMME
 if(V::get('DBG_TS', 0, $_GET) > 1){echo'<pre style="max-height:200px;overflow:auto;border:1px solid orange;text-align:left;">this (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($this);echo'</pre>';}// TODO: RMME
 		$query = trim($query);
+		$sqlWhereAdd = "";
 		if (!empty($query)) {
 			$qArr = array();
 			$queryArr = explode(' ', $query);