mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-64206 core: updated FB logo URL
This commit is contained in:
parent
2cea0bd6c6
commit
4b0cf053dc
@ -86,7 +86,7 @@ class api {
|
||||
// Facebook is a custom setup.
|
||||
$record = (object) [
|
||||
'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' => '',
|
||||
'loginscopes' => 'public_profile email',
|
||||
'loginscopesoffline' => 'public_profile email',
|
||||
|
@ -2854,5 +2854,22 @@ function xmldb_main_upgrade($oldversion) {
|
||||
upgrade_main_savepoint(true, 2018112000.00);
|
||||
}
|
||||
|
||||
if ($oldversion < 2018120300.01) {
|
||||
// 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, 2018120300.01);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$version = 2018120300.00; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
$version = 2018120300.01; // YYYYMMDD = weekly release date of this DEV branch.
|
||||
// RR = release increments - 00 in DEV branches.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user