Commit Graph

237 Commits

Author SHA1 Message Date
Daniel Thee Roperto
170a42fe86 Merge branch 'master' into codestyle 2017-05-19 13:57:02 +10:00
Daniel Thee Roperto
96b3e78ba7 Merge pull request #117 from catalyst/validateplugin
Added validate to Travis.
2017-05-19 13:56:40 +10:00
Daniel Thee Roperto
8df4e4fe7c Merge branch 'master' into validateplugin 2017-05-19 11:40:20 +10:00
Daniel Thee Roperto
50f4fd1cf2 Merge pull request #116 from catalyst/issue-115_outage-body-class
Issue 115 outage body class
2017-05-19 11:39:31 +10:00
Daniel Thee Roperto
95cec83970 Fixed code style. 2017-05-19 09:41:57 +10:00
Daniel Thee Roperto
75863e1a71 Fixed Moodle Code Style. 2017-05-19 09:40:23 +10:00
Daniel Thee Roperto
4948e6710b Added validate to Travis. 2017-05-19 09:21:46 +10:00
Matt Dawson
61c8847a7b Merge branch 'master' into issue-115_outage-body-class 2017-05-19 08:10:34 +10:00
Matt Dawson
21eb6eb080 issue-115: added body class when outage is active 2017-05-18 16:10:55 +10:00
Matt Dawson
318e55f03a version bump 2017-05-18 16:10:16 +10:00
Daniel Thee Roperto
33e142e8cc Merge pull request #108 from catalyst/issue-107_wrong-dataroot
Fixes #107 - Check in bootstrap.php if this is a behat environment.
2017-03-03 14:37:02 +11:00
Daniel Thee Roperto
d80ae326fd Fixes #107 - Check in bootstrap.php if this is a behat environment. 2017-03-02 22:14:21 +11:00
Daniel Thee Roperto
2b25eb92db Removed Travis support for Moodle 32 and 33, see issue #106 2017-02-20 14:42:42 +11:00
Daniel Thee Roperto
0b17efedba Issue #104 - Allowed symlinks in dataroot, added unit tests. 2017-02-20 13:59:24 +11:00
Daniel Thee Roperto
151d2ba59f Adding timeout to fetch local files. 2017-02-09 13:34:38 +11:00
Daniel Thee Roperto
e78464f3b7 Travis in verbose mode, set page fetch CURL TIMEOUT to 5 seconds. 2017-01-03 15:43:47 +11:00
Daniel Thee Roperto
efbdb77ae6 Moodle code style fix. 2016-12-21 14:38:35 +11:00
Daniel Thee Roperto
0380c6ebec Outage now honours ABORT_AFTER_CONFIG CLI_SCRIPT AJAX_SCRIPT and WS_SERVER 2016-12-21 14:38:31 +11:00
Daniel Thee Roperto
fbd9ebabea Added quick guide with step-by-step instructions on how to use this plugin. 2016-12-20 13:14:11 +11:00
Daniel Thee Roperto
58a4cd0188 Removed changelog as it was already outdated. 2016-12-16 18:29:28 +11:00
Daniel Thee Roperto
0ad53cde87 Added warning to manage outages page if host is not configured (inaccessible wwwroot). 2016-12-16 16:07:29 +11:00
Daniel Thee Roperto
3e17049a65 Updated Travis matrix: Moodle 3.2 or later requires at least PHP 5.6.5 2016-12-16 14:05:35 +11:00
Daniel Thee Roperto
66bc96ed6f Issue #90 - Travis timeout. 2016-12-16 12:09:39 +11:00
Daniel Thee Roperto
6efbb0c2c7 Refactored tests. 2016-12-16 10:23:52 +11:00
Daniel Thee Roperto
b8aa1dd233 Issue #86 - Added relative time on manage outage tables. 2016-12-14 12:29:27 +11:00
Daniel Thee Roperto
9ddc1cd32c Issue #87 - Using 'notifyerror' instead of the wrong type 'notifyfailure'. 2016-12-14 11:52:40 +11:00
Daniel Thee Roperto
38b1b5fe72 Issue #85 - Only remove additionalhtml if in the appropriate settings section. 2016-12-14 11:25:44 +11:00
Daniel Thee Roperto
7946dccd5e Issue #88 - Injection should be prevented in settings even if symlinks are used. 2016-12-14 11:20:58 +11:00
Daniel Thee Roperto
c809873f9a Updated Travis file. 2016-12-14 09:57:12 +11:00
Brendan Heywood
ffdc14c860 Bump version 2016-12-12 17:01:19 +11:00
Brendan Heywood
99428ef0ae Ignore curl ssl errors #83 2016-12-12 16:59:50 +11:00
Daniel Thee Roperto
32f48a2133 Issue #82 - Recreate templates when settings (allowed ips or blocks removed) is updated. 2016-12-05 11:48:13 +11:00
Daniel Thee Roperto
67600472ec Fixed problem with bootstrap in CLI. Fixed file.php when dataroot had trailing slashes. 2016-11-30 14:11:24 +11:00
Daniel Thee Roperto
bf3b08cfea Removing PHP5 in Moodle 32 (master) Travis build. 2016-11-18 10:11:57 +11:00
Daniel Thee Roperto
2f0d54c943 Fixed failing tests on Moodle before 30 (related to MDL-56250). 2016-11-18 10:03:19 +11:00
Daniel Thee Roperto
659a275a68 Issue #80 - Problem with PHP below 5.6.3 fixed. 2016-11-17 15:26:02 +11:00
Daniel Thee Roperto
e1524a10bb Added Travis to check for PHP 5.5. 2016-11-17 15:17:42 +11:00
Brendan Heywood
916f439fe0 Renamed svg file 2016-11-17 11:41:59 +11:00
Daniel Thee Roperto
65099bfa58 Version bumped to 1.0.7 2016-11-15 13:47:00 +11:00
Daniel Thee Roperto
44ef9bb5a2 Travis modifications. 2016-11-15 13:41:07 +11:00
Daniel Thee Roperto
fc2349f312 Travis is freezing with a few behat tests which creates outages. It works fine locally both manually and with selenium. Ignoring tests and opening issue #77 to deal with it later as the code works fine. 2016-11-15 12:25:04 +11:00
Daniel Thee Roperto
7f264a85da Code cleanup to meet code standards. 2016-11-14 19:20:46 +11:00
Daniel Thee Roperto
5961e82b85 Issue #22 - Self-refresh maintenance page every 5 minutes or the outage duration, whatever is lower. 2016-11-14 15:43:57 +11:00
Daniel Thee Roperto
3360d357d4 Added warnings in case plugin is not properly configured. 2016-11-14 15:02:30 +11:00
Daniel Thee Roperto
739c92e94e Fixed string for finish.php 2016-11-14 14:03:49 +11:00
Daniel Thee Roperto
73daf6f666 Preventing cli/finish.php to run while in maintenance mode. 2016-11-14 13:57:23 +11:00
Daniel Thee Roperto
27c7558e57 Issue #22 - Added setting and implemented removing elements by basic CSS selector (only simple .class and #id can be used as of now). 2016-11-14 11:35:08 +11:00
Daniel Thee Roperto
0c97b4be01 Applying moodle coding standards. 2016-11-10 19:29:43 +11:00
Daniel Thee Roperto
33be3eef86 Refactored maintenance_static_page.php due to high complexity (more than 50). 2016-11-10 19:06:18 +11:00
Daniel Thee Roperto
af2e76e972 Issue #22 - Fetching url() inside CSS files. 2016-11-10 17:06:56 +11:00