Plugin Directory

Changeset 1513367


Ignore:
Timestamp:
10/12/2016 12:50:06 PM (9 years ago)
Author:
reviewbuilder
Message:

Minor bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • review-builder/trunk/com/core/SGRB.php

    r1513332 r1513367  
    7373    {
    7474        $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);
    8485    }
    8586
     
    192193            }
    193194        }
    194         return $content;       
    195        
     195        return $content;
     196
    196197    }
    197198
     
    413414        }
    414415        wp_enqueue_script($this->prefix.$script, $this->asset($script.'.js'), array('jquery'),false);
    415     }   
     416    }
    416417
    417418    public function includeStyle($style)
Note: See TracChangeset for help on using the changeset viewer.