Bearbeitung von Übungsblättern eingefügt
This commit is contained in:
@@ -226,7 +226,7 @@ class TopicData
|
||||
}
|
||||
|
||||
$result->cleanupRelatedTopics();
|
||||
$result->cleanupFiles();
|
||||
//$result->cleanupFiles();
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -238,7 +238,7 @@ class TopicData
|
||||
public function save(): bool
|
||||
{
|
||||
$this->cleanupRelatedTopics();
|
||||
$this->cleanupFiles();
|
||||
//$this->cleanupFiles();
|
||||
|
||||
$data = array();
|
||||
$data["displayName"] = $this->displayName;
|
||||
@@ -316,11 +316,13 @@ class TopicData
|
||||
*/
|
||||
public function deleteDownload(string $name): bool
|
||||
{
|
||||
if (!isset($this->files[$name])) {
|
||||
if (!in_array($name, $this->files)) {
|
||||
echo "a";
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!unlink(Config::getTopicDirectory($this->getSubjectId(), $this->getId()) . "downloads/$name")) {
|
||||
echo "b";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user