From 8e11a0fe3accdd7e99db92295a59bcb21f69bb38 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Thu, 22 Feb 2018 18:49:48 +0800 Subject: [PATCH] #166 Fixed encoding content links --- backup/moodle2/backup_customcert_activity_task.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/moodle2/backup_customcert_activity_task.class.php b/backup/moodle2/backup_customcert_activity_task.class.php index 321e242..a071cc3 100644 --- a/backup/moodle2/backup_customcert_activity_task.class.php +++ b/backup/moodle2/backup_customcert_activity_task.class.php @@ -63,11 +63,11 @@ class backup_customcert_activity_task extends backup_activity_task { // Link to the list of customcerts. $search = "/(".$base."\/mod\/customcert\/index.php\?id\=)([0-9]+)/"; - $content = preg_replace($search, '$@customcertINDEX*$2@$', $content); + $content = preg_replace($search, '$@CUSTOMCERTINDEX*$2@$', $content); // Link to customcert view by moduleid. $search = "/(".$base."\/mod\/customcert\/view.php\?id\=)([0-9]+)/"; - $content = preg_replace($search, '$@customcertVIEWBYID*$2@$', $content); + $content = preg_replace($search, '$@CUSTOMCERTVIEWBYID*$2@$', $content); return $content; }