mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-27559-master-v2' of https://github.com/mackensen/moodle
This commit is contained in:
commit
7df271d9b3
6 changed files with 26 additions and 8 deletions
|
@ -110,7 +110,10 @@ function rss_delete_file($componentname, $instance) {
|
|||
|
||||
$dirpath = "$CFG->cachedir/rss/$componentname";
|
||||
if (is_dir($dirpath)) {
|
||||
$dh = opendir($dirpath);
|
||||
if (!$dh = opendir($dirpath)) {
|
||||
error_log("Directory permission error. RSS directory store for component '{$componentname}' exists but cannot be opened.", DEBUG_DEVELOPER);
|
||||
return;
|
||||
}
|
||||
while (false !== ($filename = readdir($dh))) {
|
||||
if ($filename!='.' && $filename!='..') {
|
||||
if (preg_match("/{$instance->id}_/", $filename)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue