dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ff4ff
)
Make it a little clearer in the code that we aren't using STDERR outside command...
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 7 Dec 2007 04:21:35 +0000
(
04:21
+0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Fri, 7 Dec 2007 04:21:35 +0000
(
04:21
+0000)
includes/Exception.php
patch
|
blob
|
history
diff --git
a/includes/Exception.php
b/includes/Exception.php
index
1ae28de
..
3756fb7
100644
(file)
--- a/
includes/Exception.php
+++ b/
includes/Exception.php
@@
-92,18
+92,13
@@
class MWException extends Exception
}
}
- /** Print the exception report using text */
- function reportText() {
- fwrite( STDERR, $this->getText() );
- }
-
/* Output a report about the exception and takes care of formatting.
* It will be either HTML or plain text based on $wgCommandLineMode.
*/
function report() {
global $wgCommandLineMode;
if ( $wgCommandLineMode ) {
-
$this->reportText(
);
+
fwrite( STDERR, $this->getText()
);
} else {
$log = $this->getLogMessage();
if ( $log ) {