wfDebug( __METHOD__ . "\n" );
$dbw = wfGetDB( DB_MASTER );
- $ns = $this->mTitle->getNamespace();
$t = $this->mTitle->getDBkey();
$id = $id ? $id : $this->mTitle->getArticleID( GAID_FOR_UPDATE );
function normaliseSpecialPage( Title $title ) {
if ( $title->getNamespace() == NS_SPECIAL ) {
list( $name, $subpage ) = SpecialPage::resolveAliasWithSubpage( $title->getDBkey() );
- if ( !$name ) return $title;
+ if ( !$name ) {
+ return $title;
+ }
$ret = SpecialPage::getTitleFor( $name, $subpage );
$ret->mFragment = $title->getFragment();
return $ret;
if( $text === '' ) {
$text = $this->linkText( $title );
}
- $nt = $this->normaliseSpecialPage( $title );
$ret = $this->link( $title, "$prefix$text$inside", array(),
wfCgiToArray( $query ), 'broken' ) . $trail;
' (' .
wfMsgExt( 'nbytes', 'parsemag', $wgLang->formatNum( $this->file->getSize() ) ) .
')';
- $pageLink = $this->getLink();
return '<li>' . $this->getLink() . ' ' . $this->getUserTools() . ' ' .
$data . ' ' . $this->getComment(). '</li>';
}
function setup_database() {
- global $wgVersion, $wgDBmwschema, $wgDBport, $wgDBuser;
+ global $wgVersion, $wgDBport, $wgDBuser;
// Make sure that we can write to the correct schema
$ctest = "mediawiki_test_table";
$text = wfMsgReal( $msg, $args, false, false, false );
$html = $this->parse( $text, true );
- $id = $this->helpId++;
- $alt = wfMsg( 'help' );
return
"<div class=\"config-help-wrapper\">\n" .
}
# Get the file
- $imagename = $title->getDBkey();
$file = wfFindFile( $title, array( 'time' => $time ) );
# Get parameter map
$handler = $file ? $file->getHandler() : false;
return $text;
}
- function srvus( $text ) {
- return $this->testSrvus( $text, $this->mOutputType );
- }
-
/**
* strip/replaceVariables/unstrip for preprocessor regression testing
*/
# do we still qualify for any callback with remaining count?
$names = $rules[$piece->open]['names'];
$skippedBraces = 0;
- $enclosingAccum =& $accum;
+
while ( $piece->count ) {
if ( array_key_exists( $piece->count, $names ) ) {
$stack->push( $piece );
--$piece->count;
$skippedBraces ++;
}
- $enclosingAccum .= str_repeat( $piece->open, $skippedBraces );
}
$flags = $stack->getFlags();
extract( $flags );
if( $haveRevisions ) {
# The page's stored (deleted) history:
$wgOut->addHTML("<ul>");
- $target = urlencode( $this->mTarget );
$remaining = $revisions->numRows();
$earliestLiveTime = $this->mTargetObj->getEarliestRevTime();
if( $this->mAllowed && $row->fa_storage_key ) {
$checkBox = Xml::check( "fileid" . $row->fa_id );
$key = urlencode( $row->fa_storage_key );
- $target = urlencode( $this->mTarget );
$pageLink = $this->getFileLink( $file, $this->getTitle(), $ts, $key, $sk );
} else {
$checkBox = '';
$info['url']
);
- $pathRelativeToRepo = substr( $info['url'], strlen( $info['repo-url'] ) );
$viewvc .= '/?pathrev=';
$viewvc .= urlencode( $info['checkout-rev'] );
$info['viewvc-url'] = $viewvc;
}
} else {
if ( $this->isMultibyte( $str ) ) {
- list( $wikiUpperChars ) = $this->getCaseMaps();
$x = $first ? '^' : '';
return preg_replace_callback(
"/$x([a-z]|[\\xc0-\\xff][\\x80-\\xbf]*)/",
}
} else {
if ( $this->isMultibyte( $str ) ) {
- list( , $wikiLowerChars ) = self::getCaseMaps();
$x = $first ? '^' : '';
return preg_replace_callback(
"/$x([A-Z]|[\\xc0-\\xff][\\x80-\\xbf]*)/",
}
function do_postgres_updates() {
- global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgShowExceptionDetails, $wgDBuser;
+ global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgDBuser;
# # Gather version numbers in case we need them
$version = $wgDatabase->getServerVersion(); # # long string