mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-64206 core: updated FB logo URL
This commit is contained in:
parent
b64e7253b2
commit
d5901aa09c
3 changed files with 20 additions and 2 deletions
|
@ -76,7 +76,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',
|
||||
|
|
|
@ -2314,5 +2314,23 @@ function xmldb_main_upgrade($oldversion) {
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
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.
|
||||
// .XX = incremental changes.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue