Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -2057,7 +2057,6 @@ |
2058 | 2058 | ); |
2059 | 2059 | if( $reader->hasRows() ) { |
2060 | 2060 | $out->addHtml( '<div id="mw-recreate-deleted-warn">' ); |
2061 | | - $out->addHtml( $this->buildWarningDismisser() ); |
2062 | 2061 | $out->addWikiText( wfMsg( 'recreate-deleted-warn' ) ); |
2063 | 2062 | $viewer = new LogViewer( $reader ); |
2064 | 2063 | $viewer->showList( $out ); |
— | — | @@ -2065,22 +2064,6 @@ |
2066 | 2065 | } |
2067 | 2066 | } |
2068 | 2067 | |
2069 | | - /** |
2070 | | - * Builds a JavaScript fragment that injects a link to dismiss the |
2071 | | - * "recreating deleted" warning |
2072 | | - * |
2073 | | - * @return string |
2074 | | - */ |
2075 | | - private function buildWarningDismisser() { |
2076 | | - global $wgJsMimeType; |
2077 | | - return '<script type="' . $wgJsMimeType . '">/*<![CDATA[*/' |
2078 | | - . 'document.write( \'<div class="mw-recreate-deleted-control">' |
2079 | | - . '<a href="javascript:dismissRecreateWarning();">' |
2080 | | - . Xml::escapeJsString( wfMsg( 'recreate-deleted-dismiss' ) ) |
2081 | | - . '</a></div>\' );' |
2082 | | - . '/*]]>*/</script>'; |
2083 | | - } |
2084 | | - |
2085 | 2068 | } |
2086 | 2069 | |
2087 | 2070 | ?> |