Skip to content

Commit

Permalink
MDL-30166 Remove deprecated %fullname% from core
Browse files Browse the repository at this point in the history
Thanks to Matheus Kautzmann for the initial patch.
  • Loading branch information
ankitagarwal committed Mar 12, 2013
1 parent 19075a2 commit 13bb9ce
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lang/en/moodle.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@
$string['outline'] = 'Outline'; $string['outline'] = 'Outline';
$string['outlinereport'] = 'Outline report'; $string['outlinereport'] = 'Outline report';
$string['page'] = 'Page'; $string['page'] = 'Page';
$string['pageheaderconfigablock'] = 'Configuring a block in %fullname%'; $string['pageheaderconfigablock'] = 'Configuring a block in {$a->fullname}';
$string['pagepath'] = 'Page path'; $string['pagepath'] = 'Page path';
$string['pageshouldredirect'] = 'This page should automatically redirect. If nothing is happening please use the continue link below.'; $string['pageshouldredirect'] = 'This page should automatically redirect. If nothing is happening please use the continue link below.';
$string['parentcategory'] = 'Parent category'; $string['parentcategory'] = 'Parent category';
Expand Down
4 changes: 2 additions & 2 deletions mod/data/edit.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@


/// RSS and CSS and JS meta /// RSS and CSS and JS meta
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) { 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' => context_course::instance($course->id))); $courseshortname = format_string($course->shortname, true, array('context' => context_course::instance($course->id)));
$PAGE->add_alternate_version($courseshortname . ': %fullname%', $rsspath, 'application/rss+xml'); $rsstitle = $courseshortname . ': ' . format_string($data->name);
rss_add_http_header($context, 'mod_data', $data, $rsstitle);
} }
if ($data->csstemplate) { if ($data->csstemplate) {
$PAGE->requires->css('/mod/data/css.php?d='.$data->id); $PAGE->requires->css('/mod/data/css.php?d='.$data->id);
Expand Down
2 changes: 1 addition & 1 deletion mod/data/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
/// RSS and CSS and JS meta /// RSS and CSS and JS meta
$meta = ''; $meta = '';
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) { if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
$rsstitle = $courseshortname . ': %fullname%'; $rsstitle = $courseshortname . ': ' . format_string($data->name);
rss_add_http_header($context, 'mod_data', $data, $rsstitle); rss_add_http_header($context, 'mod_data', $data, $rsstitle);
} }
if ($data->csstemplate) { if ($data->csstemplate) {
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/discuss.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) { if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) {
require_once("$CFG->libdir/rsslib.php"); require_once("$CFG->libdir/rsslib.php");


$rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': %fullname%'; $rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': ' . format_string($forum->name);
rss_add_http_header($modcontext, 'mod_forum', $forum, $rsstitle); rss_add_http_header($modcontext, 'mod_forum', $forum, $rsstitle);
} }


Expand Down
2 changes: 1 addition & 1 deletion mod/forum/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) { if (!empty($CFG->enablerssfeeds) && !empty($CFG->forum_enablerssfeeds) && $forum->rsstype && $forum->rssarticles) {
require_once("$CFG->libdir/rsslib.php"); require_once("$CFG->libdir/rsslib.php");


$rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': %fullname%'; $rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': ' . format_string($forum->name);
rss_add_http_header($context, 'mod_forum', $forum, $rsstitle); rss_add_http_header($context, 'mod_forum', $forum, $rsstitle);
} }


Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds) if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds)
&& $glossary->rsstype && $glossary->rssarticles) { && $glossary->rsstype && $glossary->rssarticles) {


$rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': %fullname%'; $rsstitle = format_string($course->shortname, true, array('context' => context_course::instance($course->id))) . ': '. format_string($glossary->name);
rss_add_http_header($context, 'mod_glossary', $glossary, $rsstitle); rss_add_http_header($context, 'mod_glossary', $glossary, $rsstitle);
} }


Expand Down

0 comments on commit 13bb9ce

Please sign in to comment.