* @static (arguably)
* @access public
*/
- function getInterwikiLink( $key, $transludeonly = false ) {
+ function getInterwikiLink( $key ) {
global $wgMemc, $wgDBname, $wgInterwikiExpiry, $wgTitleInterwikiCache;
$fname = 'Title::getInterwikiLink';
if ( $timestamp == '' ) {
$timestamp = $dbw->timestamp();
}
- $page = $dbw->tableName( 'page' );
/*
+ $page = $dbw->tableName( 'page' );
$sql = "UPDATE $page SET page_touched='{$timestamp}' WHERE page_id IN (";
$first = true;
return;
}
- $now = wfTimestampNow();
$dbw =& wfGetDB( DB_MASTER );
$success = $dbw->update( 'page',
array( /* SET */
* @return mixed true on success, message name on failure
* @access public
*/
- function isValidMoveOperation( &$nt, $auth = true, $reason = '' ) {
+ function isValidMoveOperation( &$nt, $auth = true ) {
global $wgUser;
if( !$this or !$nt ) {
return 'badtitletext';
return 'immobile_namespace';
}
- $fname = 'Title::move';
$oldid = $this->getArticleID();
$newid = $nt->getArticleID();
* @access public
*/
function moveTo( &$nt, $auth = true, $reason = '' ) {
- $err = $this->isValidMoveOperation( $nt, $auth, $reason );
+ $err = $this->isValidMoveOperation( $nt, $auth );
if( is_string( $err ) ) {
return $err;
}
$newid = $nt->getArticleID();
$oldid = $this->getArticleID();
$dbw =& wfGetDB( DB_MASTER );
- $links = $dbw->tableName( 'links' );
# Delete the old redirect. We don't save it to history since
# by definition if we've got here it's rather uninteresting.
global $wgContLang,$wgUser;
$titlekey = $this->getArticleId();
- $sk =& $wgUser->getSkin();
- $parents = array();
$dbr =& wfGetDB( DB_SLAVE );
$categorylinks = $dbr->tableName( 'categorylinks' );
$parents = $this->getParentCategories();
if($parents != '') {
- foreach($parents as $parent => $current)
- {
+ foreach($parents as $parent => $current) {
if ( array_key_exists( $parent, $children ) ) {
# Circular reference
$stack[$parent] = array();
return;
}
- $arr = array();
$toucharr = array();
while( $row = $dbw->fetchObject( $res ) ) {
$toucharr[] = $row->pl_from;