Move <div>...</div> from message to program code for consistency with other stylings.
[lhc/web/wiklou.git] / includes / ExternalStore.php
index 272bcfc..1e750bb 100644 (file)
@@ -75,7 +75,7 @@ class ExternalStore {
         * @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;
@@ -92,6 +92,8 @@ class ExternalStore {
                                $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!