Skip to content

Commit

Permalink
Fix encoding/decoding of links to view and index
Browse files Browse the repository at this point in the history
  • Loading branch information
Paola Maneggia authored and toniginard committed Nov 25, 2024
1 parent 8abe9da commit 141c120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/moodle2/backup_geogebra_activity_task.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ static public function encode_content_links($content) {

// Link to the list of geogebras
$search="/(".$base."\/mod\/geogebra\/index.php\?id\=)([0-9]+)/";
$content= preg_replace($search, '$@geogebraINDEX*$2@$', $content);
$content= preg_replace($search, '$@GEOGEBRAINDEX*$2@$', $content);

// Link to geogebra view by moduleid
$search="/(".$base."\/mod\/geogebra\/view.php\?id\=)([0-9]+)/";
$content= preg_replace($search, '$@geogebraVIEWBYID*$2@$', $content);
$content= preg_replace($search, '$@GEOGEBRAVIEWBYID*$2@$', $content);

return $content;

Expand Down

0 comments on commit 141c120

Please sign in to comment.