projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ff2d7
)
Now links to forums are encoded properly
author
stronk7
<stronk7>
Thu, 6 May 2004 22:53:04 +0000
(22:53 +0000)
committer
stronk7
<stronk7>
Thu, 6 May 2004 22:53:04 +0000
(22:53 +0000)
mod/forum/backuplib.php
patch
|
blob
|
history
diff --git
a/mod/forum/backuplib.php
b/mod/forum/backuplib.php
index ca23d398b73bc50fb39154033d1eefd8bb6b1844..8711083d4d2b6de4036ea5778e8715540f287eda 100644
(file)
--- a/
mod/forum/backuplib.php
+++ b/
mod/forum/backuplib.php
@@
-290,7
+290,10
@@
//should have its own. They are called automatically from the backup procedure.
function forum_encode_content_links ($content,$preferences) {
- $base = '\$@WWWROOT@\$';
+ global $CFG;
+
+ $base = preg_quote($CFG->wwwroot,"/");
+
//Link to the list of forums
$buscar="/(".$base."\/mod\/forum\/index.php\?id\=)([0-9]+)/";
$result= preg_replace($buscar,'$@FORUMINDEX*$2@$',$content);