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:
74bad3a
)
Exception text conventionally does not have a terminating line break.
author
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 31 Mar 2007 16:53:31 +0000
(16:53 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sat, 31 Mar 2007 16:53:31 +0000
(16:53 +0000)
includes/FileStore.php
patch
|
blob
|
history
diff --git
a/includes/FileStore.php
b/includes/FileStore.php
index
1fd35b0
..
8f25e2e
100644
(file)
--- a/
includes/FileStore.php
+++ b/
includes/FileStore.php
@@
-106,7
+106,7
@@
class FileStore {
private function copyFile( $sourcePath, $destPath, $flags=0 ) {
if( !file_exists( $sourcePath ) ) {
// Abort! Abort!
private function copyFile( $sourcePath, $destPath, $flags=0 ) {
if( !file_exists( $sourcePath ) ) {
// Abort! Abort!
- throw new FSException( "missing source file '$sourcePath'
\n
" );
+ throw new FSException( "missing source file '$sourcePath'" );
}
$transaction = new FSTransaction();
}
$transaction = new FSTransaction();
@@
-125,7
+125,7
@@
class FileStore {
if( !$ok ) {
throw new FSException(
if( !$ok ) {
throw new FSException(
- "failed to create directory for '$destPath'
\n
" );
+ "failed to create directory for '$destPath'" );
}
}
}
}
@@
-138,7
+138,7
@@
class FileStore {
$transaction->addRollback( FSTransaction::DELETE_FILE, $destPath );
} else {
throw new FSException(
$transaction->addRollback( FSTransaction::DELETE_FILE, $destPath );
} else {
throw new FSException(
- __METHOD__." failed to copy '$sourcePath' to '$destPath'
\n
" );
+ __METHOD__." failed to copy '$sourcePath' to '$destPath'" );
}
}
}
}