mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fix for MDL-6654
This commit is contained in:
parent
1febf1a77a
commit
242a445fdf
@ -37,6 +37,11 @@ function rss_client_upgrade($oldversion) {
|
|||||||
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
|
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
|
||||||
foreach ($rssfeeds as $rssfeed) {
|
foreach ($rssfeeds as $rssfeed) {
|
||||||
$rssfeed->shared = 1;
|
$rssfeed->shared = 1;
|
||||||
|
$rssfeed->title = addslashes($rssfeed->title);
|
||||||
|
$rssfeed->preferredtitle = addslashes($rssfeed->preferredtitle);
|
||||||
|
$rssfeed->description = addslashes($rssfeed->description);
|
||||||
|
$rssfeed->url = addslashes($rssfeed->url);
|
||||||
|
|
||||||
if (!update_record('block_rss_client', $rssfeed)) {
|
if (!update_record('block_rss_client', $rssfeed)) {
|
||||||
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
|
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,11 @@ function rss_client_upgrade($oldversion) {
|
|||||||
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
|
if ($rssfeeds = get_records_select('block_rss_client', $adminsql)) {
|
||||||
foreach ($rssfeeds as $rssfeed) {
|
foreach ($rssfeeds as $rssfeed) {
|
||||||
$rssfeed->shared = 1;
|
$rssfeed->shared = 1;
|
||||||
|
$rssfeed->title = addslashes($rssfeed->title);
|
||||||
|
$rssfeed->preferredtitle = addslashes($rssfeed->preferredtitle);
|
||||||
|
$rssfeed->description = addslashes($rssfeed->description);
|
||||||
|
$rssfeed->url = addslashes($rssfeed->url);
|
||||||
|
|
||||||
if (!update_record('block_rss_client', $rssfeed)) {
|
if (!update_record('block_rss_client', $rssfeed)) {
|
||||||
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
|
notice('Could not set '.$rssfeed->title.' as a shared RSS feed.');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user