dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't fail fatally when Linker::link() is passed a non-object
[lhc/web/wiklou.git]
/
includes
/
Linker.php
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
cc02241
..
aa21f90
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-178,7
+178,7
@@
class Linker {
}
if( !$target instanceof Title ) {
-
throw new MWException( 'Linker::link passed invalid target' )
;
+
return "<!-- ERROR -->$text"
;
}
$options = (array)$options;