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:
90e62fa
)
Use isset in WikiPage prepareContentForEdit for newContent
author
addshore
<addshorewiki@gmail.com>
Thu, 28 Jul 2016 16:22:05 +0000
(17:22 +0100)
committer
Addshore
<addshorewiki@gmail.com>
Thu, 28 Jul 2016 16:25:49 +0000
(16:25 +0000)
This will stop the following:
Undefined property: stdClass::$newContent in
includes/page/WikiPage.php on line 2056
Bug: T75474
Change-Id: I1bc840faff1b4dc1444434b4edec223950bc6eb1
includes/page/WikiPage.php
patch
|
blob
|
history
diff --git
a/includes/page/WikiPage.php
b/includes/page/WikiPage.php
index
e7352af
..
46fef10
100644
(file)
--- a/
includes/page/WikiPage.php
+++ b/
includes/page/WikiPage.php
@@
-2050,7
+2050,7
@@
class WikiPage implements Page, IDBAccessObject {
}
if ( $this->mPreparedEdit
- &&
$this->mPreparedEdit->newContent
+ &&
isset( $this->mPreparedEdit->newContent )
&& $this->mPreparedEdit->newContent->equals( $content )
&& $this->mPreparedEdit->revid == $revid
&& $this->mPreparedEdit->format == $serialFormat