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 "StringUtils: Add a utility for checking if a string is a valid regex"
[lhc/web/wiklou.git]
/
includes
/
cache
/
LinkCache.php
diff --git
a/includes/cache/LinkCache.php
b/includes/cache/LinkCache.php
index
1bcf948
..
b2f2452
100644
(file)
--- a/
includes/cache/LinkCache.php
+++ b/
includes/cache/LinkCache.php
@@
-89,6
+89,7
@@
class LinkCache {
*
* @param bool|null $update
* @return bool
*
* @param bool|null $update
* @return bool
+ * @deprecated Since 1.34
*/
public function forUpdate( $update = null ) {
return wfSetVar( $this->mForUpdate, $update );
*/
public function forUpdate( $update = null ) {
return wfSetVar( $this->mForUpdate, $update );
@@
-306,7
+307,7
@@
class LinkCache {
private function isCacheable( LinkTarget $title ) {
$ns = $title->getNamespace();
private function isCacheable( LinkTarget $title ) {
$ns = $title->getNamespace();
- if ( in_array( $ns, [ NS_TEMPLATE, NS_FILE, NS_CATEGORY ] ) ) {
+ if ( in_array( $ns, [ NS_TEMPLATE, NS_FILE, NS_CATEGORY
, NS_MEDIAWIKI
] ) ) {
return true;
}
// Focus on transcluded pages more than the main content
return true;
}
// Focus on transcluded pages more than the main content