Changeset 1513367
- Timestamp:
- 10/12/2016 12:50:06 PM (9 years ago)
- File:
-
- 1 edited
-
review-builder/trunk/com/core/SGRB.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
review-builder/trunk/com/core/SGRB.php
r1513332 r1513367 73 73 { 74 74 $this->includeModel('TemplateDesign'); 75 $this->includeModel('Comment_Rating'); 76 77 $sgrbVersion = get_option('SGRB_VERSION'); 78 if (!$sgrbVersion || $sgrbVersion < SGRB_VERSION) { 79 SGRB_TemplateDesignModel::create(); 80 SGRB_Comment_RatingModel::alterTable(); 81 SGRB_Rate_LogModel::alterTable(); 82 update_option('SGRB_VERSION', SGRB_VERSION); 83 } 75 $this->includeModel('Comment_Rating'); 76 77 $sgrbVersion = get_option('SGRB_VERSION'); 78 if ($sgrbVersion && $sgrbVersion <= '1.1.2') { 79 SGRB_TemplateDesignModel::create(); 80 SGRB_Comment_RatingModel::alterTable(); 81 SGRB_Rate_LogModel::alterTable(); 82 } 83 84 if($sgrbVersion < SGRB_VERSION) update_option('SGRB_VERSION', SGRB_VERSION); 84 85 } 85 86 … … 192 193 } 193 194 } 194 return $content; 195 195 return $content; 196 196 197 } 197 198 … … 413 414 } 414 415 wp_enqueue_script($this->prefix.$script, $this->asset($script.'.js'), array('jquery'),false); 415 } 416 } 416 417 417 418 public function includeStyle($style)
Note: See TracChangeset
for help on using the changeset viewer.