Skip to content

Instantly share code, notes, and snippets.

Daniel Neis Araujo danielneis

View GitHub Profile
View moodle-bulk_update_availability.php
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
View search-admin.diff
diff --git a/search/index.php b/search/index.php
index 936dfbc7a70..088251c1c69 100644
--- a/search/index.php
+++ b/search/index.php
@@ -66,6 +66,10 @@ if (\core_search\manager::is_global_search_enabled() === false) {
$search = \core_search\manager::instance(true);
+if (strpos($q, 'admin:') === 0) {
+ redirect(new moodle_url('/admin/search.php', ['query' => trim(substr($q, 6))]));
View .gitlab-ci.yml
variables:
DB: 'pgsql'
PHP: '7.1'
BROWSER: 'chrome'
before_script:
- apt install git -y
- git clone --depth 1 https://github.com/moodlehq/moodle-docker.git $HOME/moodle-docker
- cd $HOME/moodle-docker
- export MOODLE_DOCKER_WWWROOT=$CI_PROJECT_DIR
View moodle-plugin-ci.gitlab-ci.yml
image: moodlehq/moodle-php-apache:7.0
services:
- mysql:latest
cache:
paths:
- $HOME/.composer/cache
variables:
You can’t perform that action at this time.