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
Add pst option to API difftotext
[lhc/web/wiklou.git]
/
includes
/
Title.php
diff --git
a/includes/Title.php
b/includes/Title.php
index
eac712b
..
9ada4f3
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-530,7
+530,7
@@
class Title {
* @param string $title Database key form
* @param string $fragment The link fragment (after the "#")
* @param string $interwiki Interwiki prefix
* @param string $title Database key form
* @param string $fragment The link fragment (after the "#")
* @param string $interwiki Interwiki prefix
- * @return Title The new object, or null on an error
+ * @return Title
|null
The new object, or null on an error
*/
public static function makeTitleSafe( $ns, $title, $fragment = '', $interwiki = '' ) {
if ( !MWNamespace::exists( $ns ) ) {
*/
public static function makeTitleSafe( $ns, $title, $fragment = '', $interwiki = '' ) {
if ( !MWNamespace::exists( $ns ) ) {
@@
-1008,10
+1008,8
@@
class Title {
*/
public function getNsText() {
if ( $this->isExternal() ) {
*/
public function getNsText() {
if ( $this->isExternal() ) {
- // This probably shouldn't even happen. ohh man, oh yuck.
- // But for interwiki transclusion it sometimes does.
- // Shit. Shit shit shit.
- //
+ // This probably shouldn't even happen,
+ // but for interwiki transclusion it sometimes does.
// Use the canonical namespaces if possible to try to
// resolve a foreign namespace.
if ( MWNamespace::exists( $this->mNamespace ) ) {
// Use the canonical namespaces if possible to try to
// resolve a foreign namespace.
if ( MWNamespace::exists( $this->mNamespace ) ) {
@@
-1420,6
+1418,7
@@
class Title {
* Deprecated for public use, use Title::makeTitle() with fragment parameter.
* Still in active use privately.
*
* Deprecated for public use, use Title::makeTitle() with fragment parameter.
* Still in active use privately.
*
+ * @private
* @param string $fragment Text
*/
public function setFragment( $fragment ) {
* @param string $fragment Text
*/
public function setFragment( $fragment ) {
@@
-4383,7
+4382,7
@@
class Title {
/**
* Updates page_touched for this page; called from LinksUpdate.php
*
/**
* Updates page_touched for this page; called from LinksUpdate.php
*
- * @param
integer $purgeTime TS_MW timestamp [optional]
+ * @param
string $purgeTime [optional] TS_MW timestamp
* @return bool True if the update succeeded
*/
public function invalidateCache( $purgeTime = null ) {
* @return bool True if the update succeeded
*/
public function invalidateCache( $purgeTime = null ) {
@@
-4418,19
+4417,16
@@
class Title {
* on the number of links. Typically called on create and delete.
*/
public function touchLinks() {
* on the number of links. Typically called on create and delete.
*/
public function touchLinks() {
- $u = new HTMLCacheUpdate( $this, 'pagelinks' );
- $u->doUpdate();
-
+ DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this, 'pagelinks' ) );
if ( $this->getNamespace() == NS_CATEGORY ) {
if ( $this->getNamespace() == NS_CATEGORY ) {
- $u = new HTMLCacheUpdate( $this, 'categorylinks' );
- $u->doUpdate();
+ DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this, 'categorylinks' ) );
}
}
/**
* Get the last touched timestamp
*
}
}
/**
* Get the last touched timestamp
*
- * @param
DatabaseB
ase $db Optional db
+ * @param
IDatab
ase $db Optional db
* @return string Last-touched timestamp
*/
public function getTouched( $db = null ) {
* @return string Last-touched timestamp
*/
public function getTouched( $db = null ) {