Skip to content

MBS-10141: remove legacy code - #5

Open
sh-csg wants to merge 1 commit into
mainfrom
MBS-10141-remove-legacy-code
Open

MBS-10141: remove legacy code#5
sh-csg wants to merge 1 commit into
mainfrom
MBS-10141-remove-legacy-code

Conversation

@sh-csg

@sh-csg sh-csg commented May 15, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@sh-csg sh-csg self-assigned this May 15, 2025
@sh-csg
sh-csg force-pushed the MBS-10141-remove-legacy-code branch from 894cada to 2c20948 Compare May 15, 2025 07:47
@sh-csg
sh-csg force-pushed the MBS-10141-remove-legacy-code branch from 2c20948 to 03d7e93 Compare August 7, 2025 18:59
@sh-csg
sh-csg changed the base branch from rebase to main August 7, 2025 19:00
@sh-csg
sh-csg force-pushed the main branch 2 times, most recently from 35a0cc2 to 2669d7b Compare August 7, 2025 19:54
@sh-csg
sh-csg force-pushed the MBS-10141-remove-legacy-code branch from 03d7e93 to 8272323 Compare August 8, 2025 05:49
@fhuebler
fhuebler self-requested a review September 29, 2025 09:13
Comment thread classes/importer.php
@@ -70,7 +70,7 @@ public function import(\stored_file|string $zip, int $draftitemid = 0): void {
$fp->extract_to_storage($zip, $this->contextid, 'tiny_elements', 'import', $draftitemid, '/');
$xmlfile = $fs->get_file($this->contextid, 'tiny_elements', 'import', $draftitemid, '/', constants::FILE_NAME_EXPORT);
if (!$xmlfile) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hoppla now there is if (!$xmlfile) { twice

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still there:

$xmlfile = $fs->get_file($this->contextid, 'tiny_elements', 'import', $draftitemid, '/', constants::FILE_NAME_EXPORT);
if (!$xmlfile) {
throw new moodle_exception(get_string('error_import_missing_xml', 'tiny_elements'));
}
if (!$xmlfile) {
throw new moodle_exception(get_string('error_import_missing_xml', 'tiny_elements'));
}
$xmlcontent = $xmlfile->get_content();

Comment thread classes/manager.php
@sh-csg
sh-csg force-pushed the MBS-10141-remove-legacy-code branch from 8272323 to 7c3c9d0 Compare October 5, 2025 15:27
@sh-csg

sh-csg commented Oct 5, 2025

Copy link
Copy Markdown
Contributor Author

Rebased on current main, problems should be solved now.

@sh-csg
sh-csg force-pushed the MBS-10141-remove-legacy-code branch from 7c3c9d0 to 52a49b0 Compare October 5, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants