Merge "Skin: Make skins aware of their registered skin name"
[lhc/web/wiklou.git] / includes / api / ApiFeedWatchlist.php
index b7c5ccc..e3a757f 100644 (file)
@@ -167,7 +167,7 @@ class ApiFeedWatchlist extends ApiBase {
                                        // Something is seriously wrong
                                        $errorCode = 'internal_api_error';
                                }
-                               $errorTitle = $this->msg( 'api-feed-error-title', $msg->getApiCode() );
+                               $errorTitle = $this->msg( 'api-feed-error-title', $errorCode );
                                $errorText = $e->getMessage();
                                $feedItems[] = new FeedItem( $errorTitle, $errorText, '', '', '' );
                        }