Skip to content

Commit

Permalink
MDL-50675 repository_wikimedia: Wikimedia is using https and not http
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Jun 29, 2015
1 parent 38cb73a commit f463158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repository/wikimedia/wikimedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class wikimedia {

public function __construct($url = '') {
if (empty($url)) {
$this->api = 'http://commons.wikimedia.org/w/api.php';
$this->api = 'https://commons.wikimedia.org/w/api.php';
} else {
$this->api = $url;
}
Expand Down Expand Up @@ -116,7 +116,7 @@ public function get_thumb_url($image_url, $orig_width, $orig_height, $thumb_widt
return $image_url;
} else {
$thumb_url = '';
$commons_main_dir = 'http://upload.wikimedia.org/wikipedia/commons/';
$commons_main_dir = 'https://upload.wikimedia.org/wikipedia/commons/';
if ($image_url) {
$short_path = str_replace($commons_main_dir, '', $image_url);
$extension = strtolower(pathinfo($short_path, PATHINFO_EXTENSION));
Expand Down

0 comments on commit f463158

Please sign in to comment.