libraries/Github_updater.php
/**
     * Checks if the current version is up to date
     *
     * @return bool true if there is an update and false otherwise
     */
Checks if the current version is up to date
@return bool true if there is an update and false otherwise
Checks if the current version is up to date @return bool true if there is an update and false otherwise
public function has_update()
    {
        $branches = json_decode($this->_connect(self::API_URL.$this->ci->config->item('github_user').'/'.$this->ci->config->item('github_repo').'/branches'));
        return $branches[0]->commit->sha !== $this->ci->config->item('current_commit');
    }
public function has_update ( ) { $ branches = json_decode ( $ this -> _connect ( self :: API_URL . $ this -> ci -> config -> item ( 'github_user' ) . '/' . $ this -> ci -> config -> item ( 'github_repo' ) . '/branches' ) ) ; return $ branches [ 0 ] -> commit -> sha !== $ this -> ci -> config -> item ( 'current_commit' ) ; }
Checks if the current version is up to date
 @return bool true if there is an update and false otherwise
Checks if the current version is up to date @return bool true if there is an update and false otherwise