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
Update SkinLegacy to use newer methods to create the file link.
[lhc/web/wiklou.git]
/
includes
/
LinksUpdate.php
diff --git
a/includes/LinksUpdate.php
b/includes/LinksUpdate.php
index
8b403fc
..
1d0bcf7
100644
(file)
--- a/
includes/LinksUpdate.php
+++ b/
includes/LinksUpdate.php
@@
-66,6
+66,10
@@
class LinksUpdate extends SqlDataUpdate {
$this->mTitle = $title;
$this->mId = $title->getArticleID();
$this->mTitle = $title;
$this->mId = $title->getArticleID();
+ if ( !$this->mId ) {
+ throw new MWException( "The Title object did not provide an article ID. Perhaps the page doesn't exist?" );
+ }
+
$this->mParserOutput = $parserOutput;
$this->mLinks = $parserOutput->getLinks();
$this->mImages = $parserOutput->getImages();
$this->mParserOutput = $parserOutput;
$this->mLinks = $parserOutput->getLinks();
$this->mImages = $parserOutput->getImages();
@@
-818,9
+822,7
@@
class LinksDeletionUpdate extends SqlDataUpdate {
/**
* Constructor
*
/**
* Constructor
*
- * @param $title Title of the page we're updating
- * @param $parserOutput ParserOutput: output from a full parse of this page
- * @param $recursive Boolean: queue jobs for recursive updates?
+ * @param $page WikiPage Page we are updating
*/
function __construct( WikiPage $page ) {
parent::__construct( );
*/
function __construct( WikiPage $page ) {
parent::__construct( );