MDL-64206 core: updated FB logo URL

This commit is contained in:
Mark Nelson 2018-11-27 17:17:41 +08:00
parent b64e7253b2
commit d5901aa09c
3 changed files with 20 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class api {
// Facebook is a custom setup. // Facebook is a custom setup.
$record = (object) [ $record = (object) [
'name' => 'Facebook', 'name' => 'Facebook',
'image' => 'https://facebookbrand.com/wp-content/themes/fb-branding/prj-fb-branding/assets/images/fb-art.png', 'image' => 'https://facebookbrand.com/wp-content/uploads/2016/05/flogo_rgb_hex-brc-site-250.png',
'baseurl' => '', 'baseurl' => '',
'loginscopes' => 'public_profile email', 'loginscopes' => 'public_profile email',
'loginscopesoffline' => 'public_profile email', 'loginscopesoffline' => 'public_profile email',

View file

@ -2314,5 +2314,23 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2018051702.02); upgrade_main_savepoint(true, 2018051702.02);
} }
if ($oldversion < 2018051703.06) {
// Update the FB logo URL.
$oldurl = 'https://facebookbrand.com/wp-content/themes/fb-branding/prj-fb-branding/assets/images/fb-art.png';
$newurl = 'https://facebookbrand.com/wp-content/uploads/2016/05/flogo_rgb_hex-brc-site-250.png';
$updatesql = "UPDATE {oauth2_issuer}
SET image = :newimage
WHERE image = :oldimage";
$params = [
'newimage' => $newurl,
'oldimage' => $oldurl
];
$DB->execute($updatesql, $params);
upgrade_main_savepoint(true, 2018051703.06);
}
return true; return true;
} }

View file

@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$version = 2018051703.05; // 20180517 = branching date YYYYMMDD - do not modify! $version = 2018051703.06; // 20180517 = branching date YYYYMMDD - do not modify!
// RR = release increments - 00 in DEV branches. // RR = release increments - 00 in DEV branches.
// .XX = incremental changes. // .XX = incremental changes.