public function get_addons_repository_url() {
        global $CFG;

        if (!empty($CFG->config_php_settings['alternativeaddonsrepositoryurl'])) {
            $url = $CFG->config_php_settings['alternativeaddonsrepositoryurl'];
        } else {
            $url = 'https://moodle.org/plugins/get.php';
        }

        if (!$this->should_send_site_info()) {
            return new moodle_url($url);
        }

        // Append the basic information about our site.
        $site = array(
            'fullname' => $this->get_site_fullname(),
            'url' => $this->get_site_url(),
            'majorversion' => $this->get_site_major_version(),
        );

        $site = $this->encode_site_information($site);

        return new moodle_url($url, array('site' => $site));
    }
public function get_addons_repository_url() {
        global $CFG;

        if (!empty($CFG->config_php_settings['alternativeaddonsrepositoryurl'])) {
            $url = $CFG->config_php_settings['alternativeaddonsrepositoryurl'];
        } else {
            $url = 'https://moodle.org/plugins/get.php';
        }

        if (!$this->should_send_site_info()) {
            return new moodle_url($url);
        }

        // Append the basic information about our site.
        $site = array(
            'fullname' => $this->get_site_fullname(),
            'url' => $this->get_site_url(),
            'majorversion' => $this->get_site_major_version(),
        );

        $site = $this->encode_site_information($site);

        return new moodle_url($url, array('site' => $site));
    }
public function get_addons_repository_url ( ) { global $ CFG ; if ( ! empty ( $ CFG -> config_php_settings [ 'alternativeaddonsrepositoryurl' ] ) ) { $ url = $ CFG -> config_php_settings [ 'alternativeaddonsrepositoryurl' ] ; } else { $ url = 'https://moodle.org/plugins/get.php' ; } if ( ! $ this -> should_send_site_info ( ) ) { return new moodle_url ( $ url ) ; } // Append the basic information about our site. $ site = array ( 'fullname' => $ this -> get_site_fullname ( ) , 'url' => $ this -> get_site_url ( ) , 'majorversion' => $ this -> get_site_major_version ( ) , ) ; $ site = $ this -> encode_site_information ( $ site ) ; return new moodle_url ( $ url , array ( 'site' => $ site ) ) ; }
Returns URL to the repository that addons can be searched in and installed from

@return moodle_url
Returns URL to the repository that addons can be searched in and installed from