r62831 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62830‎ | r62831 | r62832 >
Date:18:41, 22 February 2010
Author:nhuffschmid
Status:ok
Tags:
Comment:
fixed export error
Modified paths:
  • /trunk/wap/image.php (modified) (history)

Diff [purge]

Index: trunk/wap/image.php
@@ -41,6 +41,10 @@
4242 curl_setopt($ch, CURLOPT_URL, $url);
4343 curl_setopt($ch, CURLOPT_HEADER, 0);
4444 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 45+
 46+ // WP otherwise says: "Please provide a User-Agent header"
 47+ curl_setopt($ch, CURLOPT_USERAGENT, "hawpedia");
 48+
4549 $curlResultString = curl_exec($ch);
4650 if (!is_string($curlResultString)) {
4751 fatalError("Couldn't reach remote image repository.");

Status & tagging log