summaryrefslogtreecommitdiff
path: root/includes/externalstore/ExternalStoreMedium.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/externalstore/ExternalStoreMedium.php')
-rw-r--r--includes/externalstore/ExternalStoreMedium.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/includes/externalstore/ExternalStoreMedium.php b/includes/externalstore/ExternalStoreMedium.php
index 02bdcb51..e9c34a4d 100644
--- a/includes/externalstore/ExternalStoreMedium.php
+++ b/includes/externalstore/ExternalStoreMedium.php
@@ -29,7 +29,7 @@
* @since 1.21
*/
abstract class ExternalStoreMedium {
- /** @var Array */
+ /** @var array */
protected $params = array();
/**
@@ -61,17 +61,18 @@ abstract class ExternalStoreMedium {
// Dont return when false to allow for simpler implementations.
// errored urls are handled in ExternalStore::batchFetchFromURLs
if ( $data !== false ) {
- $retval[$urls] = $data;
+ $retval[$url] = $data;
}
}
+
return $retval;
}
/**
* Insert a data item into a given location
*
- * @param string $location the location name
- * @param string $data the data item
+ * @param string $location The location name
+ * @param string $data The data item
* @return string|bool The URL of the stored data item, or false on error
* @throws MWException
*/