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
Use square brackets instead of curly braces for char of a string
[lhc/web/wiklou.git]
/
includes
/
WikiError.php
diff --git
a/includes/WikiError.php
b/includes/WikiError.php
index
4b0e68c
..
08eb800
100644
(file)
--- a/
includes/WikiError.php
+++ b/
includes/WikiError.php
@@
-82,7
+82,7
@@
class WikiError {
*/
class WikiErrorMsg extends WikiError {
/**
*/
class WikiErrorMsg extends WikiError {
/**
- * @param
$message String:
wiki message name
+ * @param
string $message
wiki message name
* @param ... parameters to pass to wfMsg()
*
* @deprecated since 1.17
* @param ... parameters to pass to wfMsg()
*
* @deprecated since 1.17
@@
-91,22
+91,22
@@
class WikiErrorMsg extends WikiError {
wfDeprecated( __METHOD__, '1.17' );
$args = func_get_args();
array_shift( $args );
wfDeprecated( __METHOD__, '1.17' );
$args = func_get_args();
array_shift( $args );
- $this->mMessage = wfM
sgReal( $message, $args, true
);
+ $this->mMessage = wfM
essage( $message )->rawParams( $args )->text(
);
$this->mMsgKey = $message;
$this->mMsgArgs = $args;
}
$this->mMsgKey = $message;
$this->mMsgArgs = $args;
}
-
+
function getMessageKey() {
return $this->mMsgKey;
}
function getMessageKey() {
return $this->mMsgKey;
}
-
+
function getMessageArgs() {
return $this->mMsgArgs;
}
}
/**
function getMessageArgs() {
return $this->mMsgArgs;
}
}
/**
- * Error class designed to handle errors involved with
+ * Error class designed to handle errors involved with
* XML parsing
* @ingroup Exception
*/
* XML parsing
* @ingroup Exception
*/
@@
-143,7
+143,7
@@
class WikiXmlError extends WikiError {
}
function _extractContext( $context, $offset ) {
}
function _extractContext( $context, $offset ) {
- if( is_null( $context ) ) {
+ if
( is_null( $context ) ) {
return null;
} else {
// Hopefully integer overflow will be handled transparently here
return null;
} else {
// Hopefully integer overflow will be handled transparently here