rabin 2 gadi atpakaļ
vecāks
revīzija
a5ecf8022e
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      database/data.php

+ 3 - 2
database/data.php

@@ -139,7 +139,7 @@ if ($info) {
             }
             $key = 'col_' . $v['id'];
     		$list = false;
-
+            $type = 'varchar-1000';
             if ($v['type'] == 1) {
                 $update_type = 'text';
                 if ($v['id'] != 3) {
@@ -154,6 +154,7 @@ if ($info) {
             } elseif ($v['type'] == 3) {
                 $update_type = 'editor';
                 $lang[] = $key;
+                $type = 'text-255';
             } elseif ($v['type'] == 4) {
                 $update_type = 'image';
                 $pic_index++;
@@ -181,7 +182,7 @@ if ($info) {
     		$struct[$key] = array
 	        (
 	            //'col'       => 'col_' . $v['id'],
-                'type'      => 'varchar-1000',
+                'type'      => $type,
 	            'name'      => $v['name'],
 	            'default'   => '',
 	            'desc'      => $v['name'],