PluginProbe
MaxButtons – Create buttons / 6.28
MaxButtons – Create buttons v6.28
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
← All changes | classes/blocks.php +4 -0 7.106.28 View file →
@@ -103,8 +103,9 @@
103 103
104 104
105 105 public static function setData($data)
106 106 {
107 +
107 108 $new_data = array(); //egalite
108 109 if (! is_array($data) || count($data) == 0) // no data
109 110 return false;
110 111
@@ -141,13 +142,16 @@
141 142 {
142 143 $value = self::getValue($fieldname);
143 144 if (! $value )
144 145 return false;
146 +
145 147 if (substr($value,0,1) !== '#')
146 148 {
147 149 $value = '#' . $value;
148 150 }
151 +
149 152 return $value;
153 +
150 154 }
151 155
152 156 public static function getDefault($fieldname)
153 157 {