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 "Have SvgHandler create a directory for its RSVG input files"
[lhc/web/wiklou.git]
/
includes
/
deferred
/
LinksUpdate.php
diff --git
a/includes/deferred/LinksUpdate.php
b/includes/deferred/LinksUpdate.php
index
0789b21
..
45d2664
100644
(file)
--- a/
includes/deferred/LinksUpdate.php
+++ b/
includes/deferred/LinksUpdate.php
@@
-31,7
+31,7
@@
class LinksUpdate extends SqlDataUpdate {
/** @var int Page ID of the article linked from */
public $mId;
/** @var int Page ID of the article linked from */
public $mId;
- /** @var Title object of the article linked from */
+ /** @var Title
Title
object of the article linked from */
public $mTitle;
/** @var ParserOutput */
public $mTitle;
/** @var ParserOutput */
@@
-52,7
+52,7
@@
class LinksUpdate extends SqlDataUpdate {
/** @var array Map of category names to sort keys */
public $mCategories;
/** @var array Map of category names to sort keys */
public $mCategories;
- /** @var array ap of language codes to titles */
+ /** @var array
M
ap of language codes to titles */
public $mInterlangs;
/** @var array Map of arbitrary name to value */
public $mInterlangs;
/** @var array Map of arbitrary name to value */
@@
-358,6
+358,7
@@
class LinksUpdate extends SqlDataUpdate {
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'pl_from' => $this->mId,
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'pl_from' => $this->mId,
+ 'pl_from_namespace' => $this->mTitle->getNamespace(),
'pl_namespace' => $ns,
'pl_title' => $dbk
);
'pl_namespace' => $ns,
'pl_title' => $dbk
);
@@
-379,6
+380,7
@@
class LinksUpdate extends SqlDataUpdate {
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'tl_from' => $this->mId,
foreach ( $diffs as $dbk => $id ) {
$arr[] = array(
'tl_from' => $this->mId,
+ 'tl_from_namespace' => $this->mTitle->getNamespace(),
'tl_namespace' => $ns,
'tl_title' => $dbk
);
'tl_namespace' => $ns,
'tl_title' => $dbk
);
@@
-400,6
+402,7
@@
class LinksUpdate extends SqlDataUpdate {
foreach ( $diffs as $iname => $dummy ) {
$arr[] = array(
'il_from' => $this->mId,
foreach ( $diffs as $iname => $dummy ) {
$arr[] = array(
'il_from' => $this->mId,
+ 'il_from_namespace' => $this->mTitle->getNamespace(),
'il_to' => $iname
);
}
'il_to' => $iname
);
}
@@
-521,7
+524,7
@@
class LinksUpdate extends SqlDataUpdate {
* is present in the database (as indicated by $wgPagePropsHaveSortkey).
* The sortkey value is currently determined by getPropertySortKeyValue().
*
* is present in the database (as indicated by $wgPagePropsHaveSortkey).
* The sortkey value is currently determined by getPropertySortKeyValue().
*
- * @note
:
this assumes that $this->mProperties[$prop] is defined.
+ * @note this assumes that $this->mProperties[$prop] is defined.
*
* @param string $prop The name of the property.
*
*
* @param string $prop The name of the property.
*
@@
-550,8
+553,8
@@
class LinksUpdate extends SqlDataUpdate {
* This will return $value if it is a float or int,
* 1 or resp. 0 if it is a bool, and null otherwise.
*
* This will return $value if it is a float or int,
* 1 or resp. 0 if it is a bool, and null otherwise.
*
- * @note
:
In the future, we may allow the sortkey to be specified explicitly
- *
in ParserOutput::setProperty.
+ * @note In the future, we may allow the sortkey to be specified explicitly
+ * in ParserOutput::setProperty.
*
* @param mixed $value
*
*
* @param mixed $value
*