protected function get_jsrev() {
        global $CFG;

        if (empty($CFG->cachejs)) {
            $jsrev = -1;
        } else if (empty($CFG->jsrev)) {
            $jsrev = 1;
        } else {
            $jsrev = $CFG->jsrev;
        }

        return $jsrev;
    }
protected function get_jsrev() {
        global $CFG;

        if (empty($CFG->cachejs)) {
            $jsrev = -1;
        } else if (empty($CFG->jsrev)) {
            $jsrev = 1;
        } else {
            $jsrev = $CFG->jsrev;
        }

        return $jsrev;
    }
protected function get_jsrev ( ) { global $ CFG ; if ( empty ( $ CFG -> cachejs ) ) { $ jsrev = - 1 ; } else if ( empty ( $ CFG -> jsrev ) ) { $ jsrev = 1 ; } else { $ jsrev = $ CFG -> jsrev ; } return $ jsrev ; }
Determine the correct JS Revision to use for this load.

@return int the jsrev to use.
Determine the correct JS Revision to use for this load .