commit 3b321667f8aa22d80c9041a2c0543e81e3abf51a Author: Matheus Kautzmann Date: Mon Apr 2 11:14:11 2012 -0300 fixing moodle bug diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 22205cb..7f4d229 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -1212,7 +1212,7 @@ $string['other'] = 'Other'; $string['outline'] = 'Outline'; $string['outlinereport'] = 'Outline report'; $string['page'] = 'Page'; -$string['pageheaderconfigablock'] = 'Configuring a block in %fullname%'; +$string['pageheaderconfigablock'] = 'Configuring a block in {$a->fullname}'; $string['pagepath'] = 'Page path'; $string['pageshouldredirect'] = 'This page should automatically redirect. If nothing is happening please use the continue link below.'; $string['parentcategory'] = 'Parent category'; diff --git a/mod/data/edit.php b/mod/data/edit.php index 1f76f8e..09fdceb 100755 --- a/mod/data/edit.php +++ b/mod/data/edit.php @@ -123,7 +123,7 @@ if ($cancel) { if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) { $rsspath = rss_get_url($context->id, $USER->id, 'mod_data', $data->id); $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))); - $PAGE->add_alternate_version($courseshortname . ': %fullname%', $rsspath, 'application/rss+xml'); + $PAGE->add_alternate_version($courseshortname . ': ' . format_string($course->fullname), $rsspath, 'application/rss+xml'); } if ($data->csstemplate) { $PAGE->requires->css('/mod/data/css.php?d='.$data->id); diff --git a/mod/data/view.php b/mod/data/view.php index 0a2290c..6978a5d 100755 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -281,7 +281,7 @@ /// RSS and CSS and JS meta $meta = ''; if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) { - $rsstitle = $courseshortname . ': %fullname%'; + $rsstitle = $courseshortname . ': ' . format_string($course->fullname); rss_add_http_header($context, 'mod_data', $data, $rsstitle); } if ($data->csstemplate) { diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php index 382b7be..fea46af 100644 --- a/mod/forum/discuss.php +++ b/mod/forum/discuss.php @@ -60,7 +60,7 @@ if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) { require_once("$CFG->libdir/rsslib.php"); - $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': %fullname%'; + $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': ' . format_string($course->fullname); rss_add_http_header($modcontext, 'mod_forum', $forum, $rsstitle); } diff --git a/mod/forum/view.php b/mod/forum/view.php index fa1bdb4..3cb72c9 100644 --- a/mod/forum/view.php +++ b/mod/forum/view.php @@ -96,7 +96,7 @@ if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) { require_once("$CFG->libdir/rsslib.php"); - $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': %fullname%'; + $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': ' . format_string($course->fullname); rss_add_http_header($context, 'mod_forum', $forum, $rsstitle); } diff --git a/mod/glossary/view.php b/mod/glossary/view.php index fe16b5e..650d2d9 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -248,7 +248,7 @@ $PAGE->set_url($url); if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds) && $glossary->rsstype && $glossary->rssarticles) { - $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': %fullname%'; + $rsstitle = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) . ': ' . format_string($course->fullname); rss_add_http_header($context, 'mod_glossary', $glossary, $rsstitle); }