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:
cf3aedc
)
Dependency inject DB into ManualLogEntry::insert()
author
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 1 Jul 2013 18:26:45 +0000
(11:26 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Mon, 1 Jul 2013 18:26:45 +0000
(11:26 -0700)
Change-Id: I5018a6ef6095929edca444ad2d901adcf8680ed2
includes/logging/LogEntry.php
patch
|
blob
|
history
diff --git
a/includes/logging/LogEntry.php
b/includes/logging/LogEntry.php
index
b99f16b
..
92a0abe
100644
(file)
--- a/
includes/logging/LogEntry.php
+++ b/
includes/logging/LogEntry.php
@@
-430,12
+430,13
@@
class ManualLogEntry extends LogEntryBase {
/**
* Inserts the entry into the logging table.
+ * @param DatabaseBase $dbw
* @return int If of the log entry
*/
- public function insert() {
+ public function insert(
DatabaseBase $dbw = null
) {
global $wgContLang;
- $dbw = wfGetDB( DB_MASTER );
+ $dbw =
$dbw ?:
wfGetDB( DB_MASTER );
$id = $dbw->nextSequenceValue( 'logging_log_id_seq' );
if ( $this->timestamp === null ) {