Index: trunk/phase3/thumb.php |
— | — | @@ -117,6 +117,7 @@ |
118 | 118 | } |
119 | 119 | |
120 | 120 | function wfThumbError( $status, $msg ) { |
| 121 | + global $wgShowHostnames; |
121 | 122 | header( 'Cache-Control: no-cache' ); |
122 | 123 | header( 'Content-Type: text/html; charset=utf-8' ); |
123 | 124 | if ( $status == 404 ) { |
— | — | @@ -124,6 +125,13 @@ |
125 | 126 | } else { |
126 | 127 | header( 'HTTP/1.1 500 Internal server error' ); |
127 | 128 | } |
| 129 | + if( $wgShowHostnames ) { |
| 130 | + $url = htmlspecialchars( @$_SERVER['REQUEST_URI'] ); |
| 131 | + $hostname = htmlspecialchars( wfHostname() ); |
| 132 | + $debug = "<!-- $url -->\n<!-- $hostname -->\n"; |
| 133 | + } else { |
| 134 | + $debug = ""; |
| 135 | + } |
128 | 136 | echo <<<EOT |
129 | 137 | <html><head><title>Error generating thumbnail</title></head> |
130 | 138 | <body> |
— | — | @@ -131,6 +139,7 @@ |
132 | 140 | <p> |
133 | 141 | $msg |
134 | 142 | </p> |
| 143 | +$debug |
135 | 144 | </body> |
136 | 145 | </html> |
137 | 146 | |