Changeset 1182983
- Timestamp:
- 06/18/2015 12:03:22 AM (11 years ago)
- Location:
- genoo/trunk
- Files:
-
- 3 edited
-
Genoo.php (modified) (1 diff)
-
libs/Genoo/TableForms.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
genoo/trunk/Genoo.php
r1182955 r1182983 6 6 Author URI: http://www.genoo.com/ 7 7 Author Email: info@genoo.com 8 Version: 2.8. 88 Version: 2.8.9 9 9 License: GPLv2 10 10 Text Domain: genoo -
genoo/trunk/libs/Genoo/TableForms.php
r1148584 r1182983 149 149 $this->set_pagination_args(array('total_items' => count($allLogs), 'per_page' => $perPage)); 150 150 $this->items = $this->found_data; 151 $this->checkActiveForm($this->items); 151 152 } catch (\Genoo\ApiException $e){ 152 153 $this->addNotice('error', 'Genoo API: ' . $e->getMessage()); … … 161 162 * Process it! 162 163 */ 163 164 164 public function process() 165 165 { … … 180 180 } 181 181 } 182 183 /** 184 * Check if Active default form has been changed / removed 185 * 186 * @param $forms 187 */ 188 public function checkActiveForm($forms) 189 { 190 if(!empty($this->activeForm)){ 191 $found = FALSE; 192 if(is_array($forms) && !empty($forms) && !empty($this->activeForm)){ 193 foreach($forms as $form){ 194 if(isset($form['id'])){ 195 if($form['id'] == $this->activeForm){ 196 $found = TRUE; 197 break; 198 } 199 } 200 } 201 } 202 // Only if none of the forms inside matches active form 203 if($found == FALSE){ 204 $this->addNotice('error', 'Have you recently changed your Genoo forms? Your default form seems to be missing, don’t forget to select a new one!'); 205 } 206 } 207 } 182 208 } -
genoo/trunk/readme.txt
r1182955 r1182983 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 Stable tag: 2.8. 88 Stable tag: 2.8.9 9 9 10 10 Combine the flexibility of WordPress with the power of Genoo and experience amazing results!
Note: See TracChangeset
for help on using the changeset viewer.