mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Better checks for existing files
This commit is contained in:
parent
73cffa5416
commit
730967f2e7
2 changed files with 10 additions and 6 deletions
|
@ -27,9 +27,11 @@
|
|||
/// Work out the last modified date for this theme
|
||||
|
||||
foreach ($THEME->sheets as $sheet) {
|
||||
$sheetmodified = filemtime($sheet.'.css');
|
||||
if ($sheetmodified > $lastmodified) {
|
||||
$lastmodified = $sheetmodified;
|
||||
if (file_exists($sheet.'.css')) {
|
||||
$sheetmodified = filemtime($sheet.'.css');
|
||||
if ($sheetmodified > $lastmodified) {
|
||||
$lastmodified = $sheetmodified;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue