* Edit conflict on recreation of deleted page
* (bug 3210) Fix Media: links with remote image URL path
* (bug 1956) Hide bot uploads from Special:Newimages
+* (bug 3216) Don't show empty warning page when no warnings.
+
=== Caveats ===
* Check for non-fatal conditions
*/
if ( ! $this->mIgnoreWarning ) {
- $warning = '<ul>';
+ $warning = '';
if( $this->mUploadSaveName != ucfirst( $filtered ) ) {
$warning .= '<li>'.wfMsgHtml( 'badfilename', htmlspecialchars( $this->mUploadSaveName ) ).'</li>';
}
* Stash the file in a temporary location; the user can choose
* to let it through and we'll complete the upload then.
*/
- return $this->uploadWarning($warning . "</ul>");
+ return $this->uploadWarning( $warning );
}
}