Skip to content

Commit

Permalink
changed access to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
chlulei committed Oct 17, 2024
1 parent 5999395 commit f7f68cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ILIAS/Test/classes/class.ilTestExportOptionXML.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getFiles(
public function onExportOptionSelected(
ilExportHandlerConsumerContextInterface $context
): void {
$this->ctrl->redirect($context->exportGUIObject(), $context->exportGUIObject()::CMD_EXPORT_XML);
$this->ctrl->redirect($context->exportGUIObject(), ilExportGUI::CMD_EXPORT_XML);
}

protected function getExportFiles(
Expand All @@ -152,7 +152,7 @@ protected function getExportFiles(
$zip_archive = new ZipArchive();
$zip_archive->open($directory . DIRECTORY_SEPARATOR . $entry);
$is_result = false;
for($i = 0; $i < $zip_archive->numFiles; $i++) {
for ($i = 0; $i < $zip_archive->numFiles; $i++) {
$stat = $zip_archive->statIndex($i);
if (str_contains(basename($stat['name']), "results")) {
$is_result = true;
Expand Down

0 comments on commit f7f68cb

Please sign in to comment.