Index: trunk/phase3/thumb.php |
— | — | @@ -101,8 +101,8 @@ |
102 | 102 | // Calculate time |
103 | 103 | wfSuppressWarnings(); |
104 | 104 | $imsUnix = strtotime( $imsString ); |
| 105 | + $stat = stat( $sourcePath ); |
105 | 106 | wfRestoreWarnings(); |
106 | | - $stat = @stat( $sourcePath ); |
107 | 107 | if ( $stat['mtime'] <= $imsUnix ) { |
108 | 108 | header( 'HTTP/1.1 304 Not Modified' ); |
109 | 109 | return; |
— | — | @@ -164,7 +164,7 @@ |
165 | 165 | header( 'HTTP/1.1 500 Internal server error' ); |
166 | 166 | } |
167 | 167 | if( $wgShowHostnames ) { |
168 | | - $url = htmlspecialchars( @$_SERVER['REQUEST_URI'] ); |
| 168 | + $url = htmlspecialchars( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' ); |
169 | 169 | $hostname = htmlspecialchars( wfHostname() ); |
170 | 170 | $debug = "<!-- $url -->\n<!-- $hostname -->\n"; |
171 | 171 | } else { |