mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #22 - Split maintenance.php into preview.php and file.php
This commit is contained in:
@@ -132,12 +132,14 @@ class maintenance_static_page {
|
||||
*/
|
||||
public function get_resources_folder() {
|
||||
global $CFG;
|
||||
// If you change the path, also change file auth/outage/maintenance.php as it does not use this reference.
|
||||
|
||||
// If you change the path, also change file auth/outage/file.php as it does not use this reference.
|
||||
$dir = $CFG->dataroot.'/auth_outage/climaintenance';
|
||||
|
||||
if ($this->preview) {
|
||||
return $CFG->dataroot.'/auth_outage/climaintenance/preview';
|
||||
} else {
|
||||
return $CFG->dataroot.'/auth_outage/climaintenance';
|
||||
$dir = $dir.'/preview';
|
||||
}
|
||||
return $dir;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -319,7 +321,7 @@ class maintenance_static_page {
|
||||
if ($this->preview) {
|
||||
$filename = 'preview/'.$filename;
|
||||
}
|
||||
$url = (string)new moodle_url('/auth/outage/maintenance.php', ['file' => $filename]);
|
||||
$url = (string)new moodle_url('/auth/outage/file.php', ['file' => $filename]);
|
||||
return $url;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user