Przeglądaj źródła

TableAcl use mysql text types: tinytext, mediumtext, longtext

Piotr Labudda 11 lat temu
rodzic
commit
f2b4704232
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 1 1
      SE/VERSION
  2. 5 1
      SE/se-lib/TableAcl.php

+ 1 - 1
SE/VERSION

@@ -1 +1 @@
-3.9.7.9
+3.9.7.10

+ 5 - 1
SE/se-lib/TableAcl.php

@@ -463,7 +463,11 @@ class TableAcl {
 				$html->cnt .= '<option value="' . $val . '"' . $sel . '>' . $val . '</option>';
 			}
 		}
-		else if (substr($colType['type'], 0, 4) == 'text') {
+		else if (substr($colType['type'], 0, 4) == 'text'
+			|| substr($colType['type'], 0, 8) == 'tinytext'
+			|| substr($colType['type'], 0, 10) == 'mediumtext'
+			|| substr($colType['type'], 0, 8) == 'longtext'
+		) {
 			$html->tag = 'textarea';
 			$html->cnt = htmlspecialchars($fValue);
 			if (isset($params['widthClass'])) {