diff --git a/lib/classes/oauth2/api.php b/lib/classes/oauth2/api.php index 118948273a2..95d69a8e730 100644 --- a/lib/classes/oauth2/api.php +++ b/lib/classes/oauth2/api.php @@ -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', diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 2b98306074e..0e593ae0d43 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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; } diff --git a/version.php b/version.php index 70baf110446..c0daa764a6e 100644 --- a/version.php +++ b/version.php @@ -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.