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
Merge "jquery.makeCollapsible: events for collapsing/expanding, tests"
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogEntry.php
diff --git
a/includes/logging/LogEntry.php
b/includes/logging/LogEntry.php
index
1f94b43
..
0f20ed1
100644
(file)
--- a/
includes/logging/LogEntry.php
+++ b/
includes/logging/LogEntry.php
@@
-367,7
+367,7
@@
class ManualLogEntry extends LogEntryBase {
*
* @since 1.19
*
*
* @since 1.19
*
- * @param
$parameters array
Associative array
+ * @param
array $parameters
Associative array
*/
public function setParameters( $parameters ) {
$this->parameters = $parameters;
*/
public function setParameters( $parameters ) {
$this->parameters = $parameters;
@@
-442,8
+442,11
@@
class ManualLogEntry extends LogEntryBase {
$this->timestamp = wfTimestampNow();
}
$this->timestamp = wfTimestampNow();
}
+ # Trim spaces on user supplied text
+ $comment = trim( $this->getComment() );
+
# Truncate for whole multibyte characters.
# Truncate for whole multibyte characters.
- $comment = $wgContLang->truncate( $
this->getComment()
, 255 );
+ $comment = $wgContLang->truncate( $
comment
, 255 );
$data = array(
'log_id' => $id,
$data = array(
'log_id' => $id,
@@
-465,8
+468,8
@@
class ManualLogEntry extends LogEntryBase {
/**
* Publishes the log entry.
/**
* Publishes the log entry.
- * @param
$newId int
id of the log entry.
- * @param
$to string:
rcandudp (default), rc, udp
+ * @param
int $newId
id of the log entry.
+ * @param
string $to
rcandudp (default), rc, udp
*/
public function publish( $newId, $to = 'rcandudp' ) {
$log = new LogPage( $this->getType() );
*/
public function publish( $newId, $to = 'rcandudp' ) {
$log = new LogPage( $this->getType() );