From 0741d1ea1614855da11c760ad41fd0948e27d6c7 Mon Sep 17 00:00:00 2001 From: Michael Milette Date: Sat, 14 Sep 2024 02:36:26 -0400 Subject: [PATCH] Release 5.3.2 --- .github/ISSUE_TEMPLATE/bug_report.yml | 113 +++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 + .github/ISSUE_TEMPLATE/feature_request.yml | 61 ++++++ .github/workflows/moodle-ci.yml | 223 +++++++++++++++++++++ CHANGELOG.md | 11 + CODE_OF_CONDUCT.md | 128 ++++++++++++ README.md | 2 +- SECURITY.md | 5 + admin/approve_course.php | 3 +- admin/comment.php | 3 +- admin/deny_course.php | 3 +- block_cmanager.php | 2 +- classes/event/course_created.php | 4 +- cmanager_admin.php | 7 +- cmanager_admin_arch.php | 5 +- cmanager_adminsettings.php | 6 +- cmanager_config.php | 3 +- cmanager_confighome.php | 3 +- comment.php | 3 +- course_exists.php | 3 +- course_new.php | 3 +- course_request.php | 3 +- db/access.php | 2 +- formeditor/ajax_functions.php | 3 +- formeditor/form_builder.php | 3 +- formeditor/page1.php | 3 +- formeditor/page2.php | 3 +- formeditor/preview.php | 3 +- history/delete.php | 5 +- lang/en/block_cmanager.php | 3 +- lib.php | 3 +- lib/course_lib.php | 7 +- lib/displayLists.php | 7 +- module_manager.php | 5 +- module_manager_history.php | 4 +- phpcs.xml.dist | 7 + review_request.php | 3 +- settings.php | 2 +- version.php | 6 +- view_summary.php | 3 +- 40 files changed, 621 insertions(+), 50 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/workflows/moodle-ci.yml create mode 100644 CODE_OF_CONDUCT.md create mode 100644 SECURITY.md create mode 100644 phpcs.xml.dist diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..f3bf851 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,113 @@ +name: Bug report +description: Report an issue to help us improve this plugin. +title: "Bug: " +body: + - type: markdown + attributes: + value: | + ## Thank you for taking the time to fill out this bug report. + Sorry to hear that you are experiencing an issue. In order to help us help you, please complete this form to the best of your ability. The more information you can provide, the easier it will be to for us to help you.
+ ***In a hurry for support?*** Contact us directly for premium support and development at [TNG Consulting Inc.](https://www.tngconsulting.ca/contact). + - type: checkboxes + id: prerequisites + attributes: + label: Prerequisites + description: Please answer the following questions before submitting an issue. + options: + - label: I'm reporting the issue to the correct repository. + required: true + - label: I am running the latest version of this plugin (if not, please upgrade first). + required: true + - label: I checked the [README.md](../blob/master/README.md) and [Wiki](../wiki) documentation but did not find my answer. + required: true + - label: I searched to make sure that this issue had not already been reported. + required: true + - label: I have, or I know someone who has, the ability and willingness to test the fix on a Moodle LMS-based site. + - label: I am submitting no more than one bug report per issue ticket (please do not submit multiple bugs in one issue ticket). + required: true + - label: I understand that support is provided by volunteer(s). + required: true + - type: textarea + id: issue + attributes: + label: What happened? + description: A clear and concise description of what you think the bug is. + validations: + required: true + - type: textarea + id: expectation + attributes: + label: What do you think should have happened? + description: Include a clear and concise description of what you expected to happen. + value: I expected '...' + validations: + required: true + - type: textarea + id: steps-to-reproduce + attributes: + label: Steps to reproduce + description: Please provide clearly ordered steps to reproduce the issue. + value: | + 1. Login as '...' (specify user role) + 2. Go to '...' + 3. Click on '....' + 4. Scroll down to '....' + 5. See error or issue. + You get it? + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: If applicable, add screenshots. It really helps us understand your issue. + - type: input + id: moodle + attributes: + label: Moodle version + placeholder: e.g. Moodle 4.4.0+ (Build 20240422) + validations: + required: true + - type: checkboxes + id: language + attributes: + label: Installed Moodle UI Language packs. + description: You can find the Moodle version by navigating as a site administrator to **Site Administration > General or Site Administration (tab) > Notifications** and scrolling to the bottom of the page. + options: + - label: English only + - label: One or more other languages/regional dialects (specify below) + - label: Other + validations: + required: true + - type: input + id: other-language + attributes: + label: If other language(s), please specify + - type: textarea + id: workaround + attributes: + label: Workaround + description: Are you currently able to work around this issue? If so, how? + - type: textarea + id: moreinfo + attributes: + label: Additional information + description: Add any other information about the problem here. For example, other installed plugins, logs for example. If you know where the problem is in the source code, we would appreciated it if you would be so kind as to let us know. Even better, feel free to submit a pull request (PR) if you can. Problems that include solutions get fixed faster. + - type: textarea + id: sysinfo + attributes: + label: System information + description: Depending on the issue, you may be asked to provide additional system information. + value: | + Client Device type: (e.g. Desktop, iPhone or iPad, Android phone or tablet, Other - specify) + Client Operating System: (e.g. Windows, Linux, Mac OS, Android, iOS, Other - specify) + Client Web Browser: (e.g. Chrome, Edge, Firefox, Safari, Safe Exam Browser, Moodle Mobile App) + Server Operating System: (e.g. Windows, Linux, Mac OS, Other - specify) + Server Webserver: (e.g. Apache, Nginx, IIS, Other - specify) + Server PHP: (e.g. 7.4, 8.0, 8.1, 8.2, 8.3, Other - specify) + - type: checkboxes + attributes: + label: Code of Conduct + options: + - label: I have read and agree to the project's code of conduct. + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..c814824 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Premium Support + about: In a hurry? Contact us for premium support and development. + url: https://www.tngconsulting.ca/ diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..9f8b9ba --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,61 @@ +name: Feature request +description: Share your ideas for this project. +title: "Feature Request: " +body: + - type: markdown + attributes: + value: | + ## Thanks for taking the time to share your ideas and suggestions. + We love hearing ideas and suggestions from people who use our plugins.
+ ***In a hurry for this new feature?*** Contact us directly for premium development and support services at [TNG Consulting Inc.](https://www.tngconsulting.ca/contact). + - type: checkboxes + id: prerequisites + attributes: + label: Prerequisites + description: Please answer the following questions before submitting a feature request. + options: + - label: I am requesting the new feature to the correct repository. + required: true + - label: I checked the latest version on GitHub and the [README.md](../blob/master/README.md) documentation to ensure that this functionality does not already exist. + required: true + - label: I searched to make sure that this feature has not already been requested. + required: true + - label: I have, or I know someone who has, the ability and willingness to test the new feature on a Moodle LMS-based site. + - label: I agree to submit one feature request per issue ticket (do not submit multiple requests in one issue ticket). + required: true + - label: I understand that development and support is provided by volunteer(s) and that all final implementation decisions are up TNG Consulting Inc. + required: true + - type: textarea + attributes: + label: Feature Request - The User Story + description: Provide a clear and concise description of the feature are you requesting or idea that you have. Be sure include one or more **real-life** examples of how you **will** use the new feature. Do not make up a story just because it is easier. We only implement new features if we understand your goal and it makes sense to us. + placeholder: e.g. As a [Moodle role], I need/want to [...], so that [...]. + validations: + required: true + - type: textarea + attributes: + label: Screenshots / Mock-ups + description: Add any screenshots, videos or documentation which can help us visualize your vision. + - type: textarea + attributes: + label: Alterative you have considered + description: Provide a clear and concise description of any alternative solutions or features you've considered. If you have seen a similar feature in another plugin, please provide us with a link to it. + - type: textarea + attributes: + label: Additional information + - type: dropdown + attributes: + label: Planning on submitting a solution in a pull request (PR)? + description: If so, we look forward to working with you to integrate your work. Feature requests with a provided solution may be integrated sooner. Be sure to read the [CONTRIBUTING] guidelines. + options: + - "Yes" + - "No" + - "Maybe" + validations: + required: true + - type: checkboxes + attributes: + label: Code of Conduct + options: + - label: I have read and agree to the project's code of conduct. + required: true diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml new file mode 100644 index 0000000..a590ac0 --- /dev/null +++ b/.github/workflows/moodle-ci.yml @@ -0,0 +1,223 @@ +# Runs tests and code analysis. +# Based on: +# https://github.com/moodlehq/moodle-plugin-ci/blob/main/gha.dist.yml + +# Title of the workflow +name: Moodle Plugin CI + +# Run this workflow every time a new commit pushed to your repository or PR created. +on: [push, pull_request] + +# Give just enough permissions to fetch code (actions/checkout). +permissions: + contents: read + +jobs: + # Set the job key. The key is displayed as the job name when a job name is not provided + test: + # Virtual environment to use. + runs-on: ubuntu-22.04 + + # DB services you need for testing. + services: + postgres: + image: postgres:13 + env: + POSTGRES_USER: 'postgres' + POSTGRES_HOST_AUTH_METHOD: 'trust' + ports: + - 5432:5432 + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 3 + + mariadb: + image: mariadb:10.6.7 + env: + MYSQL_USER: 'root' + MYSQL_ALLOW_EMPTY_PASSWORD: "true" + MYSQL_CHARACTER_SET_SERVER: "utf8mb4" + MYSQL_COLLATION_SERVER: "utf8mb4_unicode_ci" + ports: + - 3306:3306 + options: --health-cmd="mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 3 + + # Determines build matrix. This is a list of PHP versions, databases and + # branches to test our project against. For each combination a separate + # build will be created. For example below, builds will be created in + # total (7.4-pgsql, 7.4-mariadb, 8.0-pgsql, 8.0-mariadb, etc.). + strategy: + fail-fast: false + matrix: + include: + # Next version of Moodle (main). + # - php: '8.3' + # moodle-branch: 'main' + # database: 'pgsql' + # - php: '8.3' + # moodle-branch: 'main' + # database: 'mariadb' + # - php: '8.2' + # moodle-branch: 'main' + # database: 'mariadb' + # Moodle 4.4.x (MOODLE_404_STABLE). + - php: '8.3' + moodle-branch: 'MOODLE_404_STABLE' + database: 'pgsql' + - php: '8.3' + moodle-branch: 'MOODLE_404_STABLE' + database: 'mariadb' + - php: '8.2' + moodle-branch: 'MOODLE_404_STABLE' + database: 'mariadb' + - php: '8.1' + moodle-branch: 'MOODLE_404_STABLE' + database: 'pgsql' + # Moodle 4.3.x (MOODLE_403_STABLE). + - php: '8.2' + moodle-branch: 'MOODLE_403_STABLE' + database: 'pgsql' + - php: '8.0' + moodle-branch: 'MOODLE_403_STABLE' + database: 'mariadb' + # Moodle 4.2.x (MOODLE_402_STABLE). + - php: '8.2' + moodle-branch: 'MOODLE_402_STABLE' + database: 'mariadb' + - php: '8.0' + moodle-branch: 'MOODLE_402_STABLE' + database: 'pgsql' + # Moodle 4.1.x (MOODLE_401_STABLE). + - php: '8.1' + moodle-branch: 'MOODLE_401_STABLE' + database: 'pgsql' + - php: '7.4' + moodle-branch: 'MOODLE_401_STABLE' + database: 'mariadb' + + steps: + # Check out this repository code in ./plugin directory + - name: Check out repository code + uses: actions/checkout@v4 + with: + path: plugin + + # Install PHP of required version. For possible options see https://github.com/shivammathur/setup-php + - name: Setup PHP ${{ matrix.php }} + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: ${{ matrix.extensions }} + ini-values: max_input_vars=6000 + # If you are not using code coverage, keep "none". Otherwise, use "pcov" (Moodle 3.10 and up) or "xdebug". + # If you try to use code coverage with "none", it will fallback to phpdbg (which has known problems). + coverage: pcov + + # Install this project into a directory called "ci", updating PATH and locale, define nvm location. + - name: Initialise moodle-plugin-ci + run: | + composer create-project -n --no-dev --prefer-dist moodlehq/moodle-plugin-ci ci ^4 + echo $(cd ci/bin; pwd) >> $GITHUB_PATH + echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH + sudo locale-gen en_AU.UTF-8 + echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV + + # Run the default install. + # Optionally, it is possible to specify a different Moodle repo to use + # (https://github.com/moodle/moodle.git is used by default) and define + # ignore directives or any other env vars for install step. For more + # details on configuring for specific requirements please refer to the + # 'Help' page. + # + # env: + # MOODLE_REPO=https://github.com/username/moodle.git + # IGNORE_PATHS: 'ignore' + # IGNORE_NAMES: 'ignore_name.php' + # MUSTACHE_IGNORE_NAMES: 'broken.mustache' + # CODECHECKER_IGNORE_PATHS: 'ignoreme' + # CODECHECKER_IGNORE_NAMES: 'ignoreme_name.php' + # + # Other env vars are available for install, namely: + # - DB_USER / DB_PASS / DB_NAME / DB_HOST / DB_PORT: used + # by install to feed the corresponding --db-xxxx options. + # - MOODLE_APP: used to install dependencies to run Behat tests + # using the Moodle App. + - name: Install moodle-plugin-ci + run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 + env: + DB: ${{ matrix.database }} + MOODLE_BRANCH: ${{ matrix.moodle-branch }} + # Uncomment this to run Behat tests using the Moodle App. + # MOODLE_APP: 'true' + + # Steps that are run for the purpose of testing. Any of these steps + # can be re-ordered or removed to your liking. And of course, you can + # add any of your own custom steps. + - name: PHP Lint + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phplint + + - name: PHP Copy/Paste Detector + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpcpd + + - name: PHP Mess Detector + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpmd + + - name: Moodle Code Checker + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpcs --max-warnings 0 + + - name: Moodle PHPDoc Checker + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpdoc --max-warnings 0 + + - name: Validating + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci validate + + - name: Check upgrade savepoints + if: ${{ !cancelled() }} + run: moodle-plugin-ci savepoints + + # This plugin does not use Mustache templates. + # - name: Mustache Lint + # if: ${{ !cancelled() }} + # run: moodle-plugin-ci mustache + + - name: Grunt + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci grunt --max-lint-warnings 0 + + - name: PHPUnit tests + continue-on-error: true # This step will show errors but will not fail + if: ${{ !cancelled() }} + run: moodle-plugin-ci phpunit --fail-on-warning + + # - name: Behat features + # id: behat + # if: ${{ !cancelled() }} + # run: moodle-plugin-ci behat --profile chrome + + # This step allows to upload Behat faildump (screenshots) as workflow artifact + # so it can be downloaded and inspected. You don't need this step if you + # are not running Behat test. Artifact will be retained for 7 days. + + # - name: Upload Behat Faildump + # if: ${{ failure() && steps.behat.outcome == 'failure' }} + # uses: actions/upload-artifact@v4 + # with: + # name: Behat Faildump (${{ join(matrix.*, ', ') }}) + # path: ${{ github.workspace }}/moodledata/behat_dump + # retention-days: 7 + # if-no-files-found: ignore + + - name: Mark cancelled jobs as failed. + if: ${{ cancelled() }} + run: exit 1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d53de9..831ada7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Change Log All notable changes to this project will be documented in this file. +## [5.3.2] - 2024-09-13 (BETA) +### Added +- Missing strings. +- GitHub actions workflow. +### Updated +- Fixed logging. +- Miscellanious bug fixes. +- Now compatible with Moodle 4.3. +- Tested compatible with PHP 8.1. +- Copyright notice to include 2024. + ## [5.3.1] - 2022-01-23 (BETA) ### Added - Adopted by new maintainer - Michael Milette, TNG Consulting Inc. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..a420856 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at [TNG Consulting Inc.] +(https://www.tngconsulting.ca/contact). +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/README.md b/README.md index 9833601..0b27593 100644 --- a/README.md +++ b/README.md @@ -221,7 +221,7 @@ https://github.com/michael-milette/moodle-enrol_invitation # License -Copyright © 2021-2022 TNG Consulting Inc. - https://www.tngconsulting.ca/ +Copyright © 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} Copyright © 2012-2018 Kyle Goslin & Daniel McSweeney - Institute of Technology Blanchardstown This file is part of Course Request Manager for Moodle - https://moodle.org/ diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..f5efff7 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,5 @@ +# Security Policy + +## Reporting a Vulnerability + +Please report (suspected) security vulnerabilities to https://tngconsulting.ca/contact. diff --git a/admin/approve_course.php b/admin/approve_course.php index ba49753..8f33571 100755 --- a/admin/approve_course.php +++ b/admin/approve_course.php @@ -22,7 +22,8 @@ * * @package block_cmanager * @copyright 2018 Kyle Goslin, Daniel McSweeney - * @copyright 2021-2022 Michael Milette (TNG Consulting Inc.), Daniel Keaman + * @copyright 2021-2022 Daniel Keaman + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../../config.php"); diff --git a/admin/comment.php b/admin/comment.php index e873e93..1d52294 100755 --- a/admin/comment.php +++ b/admin/comment.php @@ -22,7 +22,8 @@ * * @package block_cmanager * @copyright 2018 Kyle Goslin, Daniel McSweeney - * @copyright 2021-2022 Michael Milette (TNG Consulting Inc.), Daniel Keaman + * @copyright 2021-2022 Daniel Keaman + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../../config.php"); diff --git a/admin/deny_course.php b/admin/deny_course.php index ac8e7a2..0c76ffe 100755 --- a/admin/deny_course.php +++ b/admin/deny_course.php @@ -22,7 +22,8 @@ * * @package block_cmanager * @copyright 2018 Kyle Goslin, Daniel McSweeney - * @copyright 2021-2022 Michael Milette (TNG Consulting Inc.), Daniel Keaman + * @copyright 2021-2022 Daniel Keaman + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../../config.php"); diff --git a/block_cmanager.php b/block_cmanager.php index 3aee3c8..0c2488f 100755 --- a/block_cmanager.php +++ b/block_cmanager.php @@ -19,7 +19,7 @@ * * @package block_cmanager * @copyright 2012-2018 Kyle Goslin, Daniel McSweeney (Institute of Technology Blanchardstown) - * @copyright 2021-2022 TNG Consulting Inc. + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @author Kyle Goslin, Daniel McSweeney * @author Michael Milette * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later diff --git a/classes/event/course_created.php b/classes/event/course_created.php index 7aff4b1..f378fef 100644 --- a/classes/event/course_created.php +++ b/classes/event/course_created.php @@ -25,8 +25,8 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace block_cmanager\event; -defined('MOODLE_INTERNAL') || die(); +defined('MOODLE_INTERNAL') || die(); class course_created extends \core\event\base { protected function init() { @@ -58,4 +58,4 @@ public static function get_legacy_eventname() { protected function get_legacy_eventdata() { // } -} \ No newline at end of file +} diff --git a/cmanager_admin.php b/cmanager_admin.php index 4cc2424..36f2d6f 100755 --- a/cmanager_admin.php +++ b/cmanager_admin.php @@ -22,7 +22,8 @@ * * @package block_cmanager * @copyright 2018 Kyle Goslin, Daniel McSweeney - * @copyright 2021-2022 Michael Milette (TNG Consulting Inc.), Daniel Keaman + * @copyright 2021-2022 Daniel Keaman + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../config.php"); @@ -368,7 +369,3 @@ function(data) { } - - - - diff --git a/cmanager_admin_arch.php b/cmanager_admin_arch.php index 6a461b4..2fbef40 100755 --- a/cmanager_admin_arch.php +++ b/cmanager_admin_arch.php @@ -22,7 +22,8 @@ * * @package block_cmanager * @copyright 2018 Kyle Goslin, Daniel McSweeney - * @copyright 2021-2022 Michael Milette (TNG Consulting Inc.), Daniel Keaman + * @copyright 2021-2022 Daniel Keaman + * @copyright 2021-2024 TNG Consulting Inc. - {@link https://www.tngconsulting.ca} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once("../../config.php"); @@ -289,4 +290,4 @@ function goToPage(){ -