public function get_nojslink(moodle_page $page = null) {
        if ($page === null) {
            global $PAGE;
            $page = $PAGE;
        }

        $link = new moodle_url($page->url, array(
            'nonjscomment'    => true,
            'comment_itemid'  => $this->itemid,
            'comment_context' => $this->context->id,
            'comment_component' => $this->get_component(),
            'comment_area'    => $this->commentarea,
        ));
        $link->remove_params(array('comment_page'));
        return $link;
    }
public function get_nojslink(moodle_page $page = null) {
        if ($page === null) {
            global $PAGE;
            $page = $PAGE;
        }

        $link = new moodle_url($page->url, array(
            'nonjscomment'    => true,
            'comment_itemid'  => $this->itemid,
            'comment_context' => $this->context->id,
            'comment_component' => $this->get_component(),
            'comment_area'    => $this->commentarea,
        ));
        $link->remove_params(array('comment_page'));
        return $link;
    }
public function get_nojslink ( moodle_page $ page = null ) { if ( $ page === null ) { global $ PAGE ; $ page = $ PAGE ; } $ link = new moodle_url ( $ page -> url , array ( 'nonjscomment' => true , 'comment_itemid' => $ this -> itemid , 'comment_context' => $ this -> context -> id , 'comment_component' => $ this -> get_component ( ) , 'comment_area' => $ this -> commentarea , ) ) ; $ link -> remove_params ( array ( 'comment_page' ) ) ; return $ link ; }
Gets a link for this page that will work with JS disabled.

@global moodle_page $PAGE
@param moodle_page $page
@return moodle_url
Gets a link for this page that will work with JS disabled .