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
doxygen: Fix leading space in class member descriptions
[lhc/web/wiklou.git]
/
includes
/
GlobalFunctions.php
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
cfe9a87
..
490df24
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1407,7
+1407,7
@@
function wfGetLangObj( $langcode = false ) {
*
* This function replaces all old wfMsg* functions.
*
*
* This function replaces all old wfMsg* functions.
*
- * @param string
$key Message key
+ * @param string
|string[] $key Message key, or array of keys
* @param mixed $params,... Normal message parameters
* @return Message
*
* @param mixed $params,... Normal message parameters
* @return Message
*
@@
-3179,10
+3179,10
@@
function wfDiff( $before, $after, $params = '-u' ) {
// Kill the --- and +++ lines. They're not useful.
$diff_lines = explode( "\n", $diff );
// Kill the --- and +++ lines. They're not useful.
$diff_lines = explode( "\n", $diff );
- if ( strpos( $diff_lines[0], '---' ) === 0 ) {
+ if (
isset( $diff_lines[0] ) &&
strpos( $diff_lines[0], '---' ) === 0 ) {
unset( $diff_lines[0] );
}
unset( $diff_lines[0] );
}
- if ( strpos( $diff_lines[1], '+++' ) === 0 ) {
+ if (
isset( $diff_lines[1] ) &&
strpos( $diff_lines[1], '+++' ) === 0 ) {
unset( $diff_lines[1] );
}
unset( $diff_lines[1] );
}