http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90576
Revision: 90576
Author: nikerabbit
Date: 2011-06-22 08:34:27 +0000 (Wed, 22 Jun 2011)
Log Message:
-----------
Update calls to static method
Modified Paths:
--------------
trunk/extensions/Translate/tag/TranslatablePage.php
Modified: trunk/extensions/Translate/tag/TranslatablePage.php
===================================================================
--- trunk/extensions/Translate/tag/TranslatablePage.php 2011-06-22 08:32:12 UTC
(rev 90575)
+++ trunk/extensions/Translate/tag/TranslatablePage.php 2011-06-22 08:34:27 UTC
(rev 90576)
@@ -425,7 +425,7 @@
protected function addTag( $tag, $revision, $value = null ) {
$dbw = wfGetDB( DB_MASTER );
- $id = $this->getTagId( $tag );
+ $id = self::getTagId( $tag );
$aid = $this->getTitle()->getArticleId();
if ( is_object( $revision ) ) {
@@ -478,8 +478,8 @@
$conds = array(
'rt_page' => $aid,
'rt_type' => array(
- $this->getTagId( 'tp:mark' ),
- $this->getTagId( 'tp:tag' ),
+ self::getTagId( 'tp:mark' ),
+ self::getTagId( 'tp:tag' ),
),
);
@@ -501,7 +501,7 @@
}
$db = wfGetDB( $dbt );
- $id = $this->getTagId( $tag );
+ $id = self::getTagId( $tag );
$conds = array(
'rt_page' => $aid,
@@ -536,7 +536,7 @@
$fields = array( 'rt_revision', 'rt_value' );
$conds = array(
'rt_page' => $this->getTitle()->getArticleId(),
- 'rt_type' => $this->getTagId( 'tp:mark' ),
+ 'rt_type' => self::getTagId( 'tp:mark' ),
);
$options = array( 'ORDER BY' => 'rt_revision DESC' );
@@ -663,7 +663,7 @@
}
public function getTransRev( $suffix ) {
- $id = $this->getTagId( 'tp:transver' );
+ $id = self::getTagId( 'tp:transver' );
$title = Title::makeTitle( NS_TRANSLATIONS, $suffix );
$db = wfGetDB( DB_SLAVE );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs