* @param string $data
* Returns the URL of the stored data item, or false on error
*/
- public static function randomInsert( $data ) {
+ public static function insertToDefault( $data ) {
global $wgDefaultExternalStore;
$tryStores = (array)$wgDefaultExternalStore;
$error = false;
$url = $store->store( $params, $data ); // Try to save the object
} catch ( DBConnectionError $error ) {
$url = false;
+ } catch( DBQueryError $error ) {
+ $url = false;
}
if ( $url ) {
return $url; // Done!