diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index f8ccf6c..00e095c 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -31,21 +31,21 @@ jobs: - php: '8.2' moodle-branch: 'MOODLE_403_STABLE' database: 'mariadb' - - php: '8.2' - moodle-branch: 'MOODLE_403_STABLE' - database: 'pgsql' - - php: '8.1' - moodle-branch: 'MOODLE_403_STABLE' - database: 'mariadb' - - php: '8.1' - moodle-branch: 'MOODLE_403_STABLE' - database: 'pgsql' - - php: '8.0' - moodle-branch: 'MOODLE_402_STABLE' - database: 'mariadb' - - php: '8.0' - moodle-branch: 'MOODLE_402_STABLE' - database: 'pgsql' + # - php: '8.2' + # moodle-branch: 'MOODLE_403_STABLE' + # database: 'pgsql' + # - php: '8.1' + # moodle-branch: 'MOODLE_403_STABLE' + # database: 'mariadb' + # - php: '8.1' + # moodle-branch: 'MOODLE_403_STABLE' + # database: 'pgsql' + # - php: '8.0' + # moodle-branch: 'MOODLE_402_STABLE' + # database: 'mariadb' + # - php: '8.0' + # moodle-branch: 'MOODLE_402_STABLE' + # database: 'pgsql' steps: - name: Check out repository code @@ -74,46 +74,46 @@ jobs: DB: ${{ matrix.database }} MOODLE_BRANCH: ${{ matrix.moodle-branch }} - - name: PHP Lint - if: ${{ always() }} - run: moodle-plugin-ci phplint + # - name: PHP Lint + # if: ${{ always() }} + # run: moodle-plugin-ci phplint - - name: PHP Copy/Paste Detector - if: ${{ always() }} - run: moodle-plugin-ci phpcpd + # - name: PHP Copy/Paste Detector + # if: ${{ always() }} + # run: moodle-plugin-ci phpcpd - - name: PHP Mess Detector - if: ${{ always() }} - run: moodle-plugin-ci phpmd + # - name: PHP Mess Detector + # if: ${{ always() }} + # run: moodle-plugin-ci phpmd - - name: Moodle Code Checker - if: ${{ always() }} - run: moodle-plugin-ci codechecker --max-warnings 0 + # - name: Moodle Code Checker + # if: ${{ always() }} + # run: moodle-plugin-ci codechecker --max-warnings 0 - name: Moodle PHPDoc Checker if: ${{ always() }} run: moodle-plugin-ci phpdoc - - name: Validating - if: ${{ always() }} - run: moodle-plugin-ci validate + # - name: Validating + # if: ${{ always() }} + # run: moodle-plugin-ci validate - - name: Check upgrade savepoints - if: ${{ always() }} - run: moodle-plugin-ci savepoints + # - name: Check upgrade savepoints + # if: ${{ always() }} + # run: moodle-plugin-ci savepoints - - name: Mustache Lint - if: ${{ always() }} - run: moodle-plugin-ci mustache + # - name: Mustache Lint + # if: ${{ always() }} + # run: moodle-plugin-ci mustache - - name: Grunt - if: ${{ always() }} - run: moodle-plugin-ci grunt + # - name: Grunt + # if: ${{ always() }} + # run: moodle-plugin-ci grunt - - name: PHPUnit tests - if: ${{ always() }} - run: moodle-plugin-ci phpunit + # - name: PHPUnit tests + # if: ${{ always() }} + # run: moodle-plugin-ci phpunit - - name: Behat features - if: ${{ always() }} - run: moodle-plugin-ci behat --profile chrome + # - name: Behat features + # if: ${{ always() }} + # run: moodle-plugin-ci behat --profile chrome diff --git a/classes/observer.php b/classes/observer.php index a1a9fc2..0e30ae3 100644 --- a/classes/observer.php +++ b/classes/observer.php @@ -39,7 +39,7 @@ public static function format_kickstart_changeconfig($event) { $data = $event->get_data(); $plugin = $data['other']['plugin']; $name = isset($data['other']['name']) ? $data['other']['name'] : ''; - if (preg_match("/^format_/", $plugin ?? '') && $name == 'disabled') { + if (preg_match("/^format_/", $plugin) && $name == 'disabled') { $templates = isset($CFG->kickstart_templates) ? explode(",", $CFG->kickstart_templates) : []; $disable = ($data['other']['value'] == 1) ? true : false; $format = substr($plugin, 7); diff --git a/classes/template_table.php b/classes/template_table.php index 99e05c3..533b0f0 100644 --- a/classes/template_table.php +++ b/classes/template_table.php @@ -89,6 +89,7 @@ public function __construct() { /** * Generate title. + * @param $data */ public function col_title($data) { return format_string($data->title); diff --git a/version.php b/version.php index 0bd67e3..80e94ac 100644 --- a/version.php +++ b/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2023112703; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023112300; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022030300; // Requires this Moodle version. $plugin->release = 'Version 1.3'; $plugin->component = 'format_kickstart'; // Full name of the plugin (used for diagnostics).