if ( $options['by'] ) {
# Local user
- $this->setBlocker( User::newFromID( $options['by'] ) );
+ $this->setBlocker( User::newFromId( $options['by'] ) );
} else {
# Foreign user
$this->setBlocker( $options['byText'] );
if ( $this->forcedTargetID ) {
$uid = $this->forcedTargetID;
} else {
- $uid = $this->target instanceof User ? $this->target->getID() : 0;
+ $uid = $this->target instanceof User ? $this->target->getId() : 0;
}
$a = [
// is if an extension hook aborted from inside ArticleSave.
// Render the status object into $this->hookError
// FIXME this sucks, we should just use the Status object throughout
- $this->hookError = '<div class="error">' . $status->getWikitext() .
+ $this->hookError = '<div class="error">' . $status->getWikiText() .
'</div>';
return true;
}
if ( !isset( $parts[1] ) || $parts[1] == '' ) {
return false;
}
- $row->old_text = ExternalStore::fetchFromUrl( $url );
+ $row->old_text = ExternalStore::fetchFromURL( $url );
}
}
$html = $this->doc->saveHTML();
- $html = $this->fixLibXml( $html );
+ $html = $this->fixLibXML( $html );
if ( wfIsWindows() ) {
// Cleanup for CRLF misprocessing of unknown origin on Windows.
// If this error continues in the future, please track it down in the
];
if ( $this->proxy ) {
- $options['http']['proxy'] = $this->urlToTCP( $this->proxy );
+ $options['http']['proxy'] = $this->urlToTcp( $this->proxy );
$options['http']['request_fulluri'] = true;
}
*/
public static function makeMediaLinkFile( Title $title, $file, $html = '' ) {
if ( $file && $file->exists() ) {
- $url = $file->getURL();
+ $url = $file->getUrl();
$class = 'internal';
} else {
$url = self::getUploadUrl( $title );
} elseif ( !$this->tryNormaliseRedirect( $title ) ) {
// Prevent information leak via Special:MyPage et al (T109724)
if ( $title->isSpecialPage() ) {
- $specialPage = SpecialPageFactory::getPage( $title->getDBKey() );
+ $specialPage = SpecialPageFactory::getPage( $title->getDBkey() );
if ( $specialPage instanceof RedirectSpecialPage ) {
$specialPage->setContext( $this->context );
if ( $this->config->get( 'HideIdentifiableRedirects' )
&& $specialPage->personallyIdentifiableTarget()
) {
- list( , $subpage ) = SpecialPageFactory::resolveAlias( $title->getDBKey() );
+ list( , $subpage ) = SpecialPageFactory::resolveAlias( $title->getDBkey() );
$target = $specialPage->getRedirect( $subpage );
// target can also be true. We let that case fall through to normal processing.
if ( $target instanceof Title ) {
$file->load( File::READ_LATEST );
if ( $file->exists() ) {
$status = $file->move( $this->newTitle );
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
return $status;
}
}
'wgMonthNames' => $lang->getMonthNamesArray(),
'wgMonthNamesShort' => $lang->getMonthAbbreviationsArray(),
'wgRelevantPageName' => $relevantTitle->getPrefixedDBkey(),
- 'wgRelevantArticleId' => $relevantTitle->getArticleId(),
+ 'wgRelevantArticleId' => $relevantTitle->getArticleID(),
];
if ( $user->isLoggedIn() ) {
// If we are looking at a css/js user subpage, purge the action=raw.
if ( $this->isJsSubpage() ) {
- $urls[] = $this->getInternalUrl( 'action=raw&ctype=text/javascript' );
+ $urls[] = $this->getInternalURL( 'action=raw&ctype=text/javascript' );
} elseif ( $this->isCssSubpage() ) {
- $urls[] = $this->getInternalUrl( 'action=raw&ctype=text/css' );
+ $urls[] = $this->getInternalURL( 'action=raw&ctype=text/css' );
}
Hooks::run( 'TitleSquidURLs', [ $this, &$urls ] );
* @return string relative URL, without the server part.
*/
private function getLocalUrl( $page, $fragmentId = null ) {
- $page = wfUrlEncode( str_replace( ' ', '_', $page ) );
+ $page = wfUrlencode( str_replace( ' ', '_', $page ) );
if ( is_string( $fragmentId ) && $fragmentId !== '' ) {
- $page .= '#' . wfUrlEncode( $fragmentId );
+ $page .= '#' . wfUrlencode( $fragmentId );
}
return str_replace( '$1', $page, $this->mPath );
: $user->getUserPage();
$hiddenPrefs = $this->context->getConfig()->get( 'HiddenPrefs' );
- if ( $user->getID() == 0 ) {
+ if ( $user->getId() == 0 ) {
$anon_ips[] = Linker::link( $page, htmlspecialchars( $user->getName() ) );
} elseif ( !in_array( 'realname', $hiddenPrefs ) && $user->getRealName() ) {
$real_names[] = Linker::link( $page, htmlspecialchars( $user->getRealName() ) );
$conds = [
"{$prefix}_namespace" => $this->title->getNamespace(),
"{$prefix}_title" => $this->title->getDBkey(),
- $this->getDb()->makeList( [
+ $this->getDB()->makeList( [
"{$prefix}_interwiki" => '',
"{$prefix}_interwiki IS NULL",
], LIST_OR ),
->params( $this->getLanguage()->listToText( $missing ) )
->numParams( count( $missing ) )
->parseAsBlock();
- $out->addHtml( $msg );
+ $out->addHTML( $msg );
}
public function showDiffPage( $diffOnly = false ) {
}
// Short-circuit
if ( $this->mOldRev === false || ( $this->mOldRev && $this->mNewRev
- && $this->mOldRev->getID() == $this->mNewRev->getID() )
+ && $this->mOldRev->getId() == $this->mNewRev->getId() )
) {
return '';
}
$title = $rev->getTitle();
$header = Linker::linkKnown( $title, $header, [],
- [ 'oldid' => $rev->getID() ] );
+ [ 'oldid' => $rev->getId() ] );
if ( $rev->userCan( Revision::DELETED_TEXT, $user ) ) {
$editQuery = [ 'action' => 'edit' ];
if ( !$rev->isCurrent() ) {
- $editQuery['oldid'] = $rev->getID();
+ $editQuery['oldid'] = $rev->getId();
}
$key = $title->quickUserCan( 'edit', $user ) ? 'editold' : 'viewsourceold';
" " . $comment . "\n" .
" " . Xml::element( 'filename', null, $file->getName() ) . "\n" .
$archiveName .
- " " . Xml::element( 'src', null, $file->getCanonicalURL() ) . "\n" .
+ " " . Xml::element( 'src', null, $file->getCanonicalUrl() ) . "\n" .
" " . Xml::element( 'size', null, $file->getSize() ) . "\n" .
" " . Xml::element( 'sha1base36', null, $file->getSha1() ) . "\n" .
" " . Xml::element( 'rel', null, $file->getRel() ) . "\n" .
protected function doDirectoryExists( $fullCont, $dir, array $params ) {
$prefix = ( $dir == '' ) ? null : "{$dir}/";
$status = $this->objectListing( $fullCont, 'names', 1, null, $prefix );
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
return ( count( $status->value ) ) > 0;
}
// Non-recursive: only list dirs right under $dir
if ( !empty( $params['topOnly'] ) ) {
$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix, '/' );
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
throw new FileBackendError( "Iterator page I/O error: {$status->getMessage()}" );
}
$objects = $status->value;
$lastDir = $getParentDir( $after ); // must be first page
$status = $this->objectListing( $fullCont, 'names', $limit, $after, $prefix );
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
throw new FileBackendError( "Iterator page I/O error: {$status->getMessage()}" );
}
}
// Reformat this list into a list of (name, stat array or null) entries
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
throw new FileBackendError( "Iterator page I/O error: {$status->getMessage()}" );
}
wfDebug( __METHOD__ . ': supposed to render ' . $this->getName() .
' (' . $this->getMimeType() . "), but can't!\n" );
- return $this->getURL(); # hm... return NULL?
+ return $this->getUrl(); # hm... return NULL?
}
} else {
- return $this->getURL();
+ return $this->getUrl();
}
}
$this->newName = $this->file->repo->getNameFromTitle( $this->target );
$this->oldRel = $this->oldHash . $this->oldName;
$this->newRel = $this->newHash . $this->newName;
- $this->db = $file->getRepo()->getMasterDb();
+ $this->db = $file->getRepo()->getMasterDB();
}
/**
if ( !isset( $logInfo['contributor']['username'] ) ) {
$revision->setUsername( 'Unknown user' );
} else {
- $revision->setUserName( $logInfo['contributor']['username'] );
+ $revision->setUsername( $logInfo['contributor']['username'] );
}
return $this->logItemCallback( $revision );
if ( isset( $revisionInfo['contributor']['ip'] ) ) {
$revision->setUserIP( $revisionInfo['contributor']['ip'] );
} elseif ( isset( $revisionInfo['contributor']['username'] ) ) {
- $revision->setUserName( $revisionInfo['contributor']['username'] );
+ $revision->setUsername( $revisionInfo['contributor']['username'] );
} else {
- $revision->setUserName( 'Unknown user' );
+ $revision->setUsername( 'Unknown user' );
}
$revision->setNoUpdates( $this->mNoUpdates );
$revision->setUserIP( $uploadInfo['contributor']['ip'] );
}
if ( isset( $uploadInfo['contributor']['username'] ) ) {
- $revision->setUserName( $uploadInfo['contributor']['username'] );
+ $revision->setUsername( $uploadInfo['contributor']['username'] );
}
$revision->setNoUpdates( $this->mNoUpdates );
}
}
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
echo "\n";
exit( 1 );
}
$this->db->commit( __METHOD__ );
}
// Resume normal operations
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
$this->enableLB();
}
$status = parent::createTables();
// Do last-minute stuff like fulltext indexes (since they can't be inside a transaction)
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
$searchindex = $this->db->tableName( 'searchindex' );
$schema = $this->db->addIdentifierQuotes( $this->getVar( 'wgDBmwschema' ) );
try {
$conn->commit( __METHOD__ );
}
// Resume normal operations
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
$this->enableLB();
}
if ( !$status->isGood() ) {
$text = $status->getWikiText();
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
$box = $this->getWarningBox( $text );
} else {
$box = $this->getErrorBox( $text );
*/
public function downloadLinkHook( $text, $attribs, $parser ) {
$anchor = Html::rawElement( 'a',
- [ 'href' => $this->getURL( [ 'localsettings' => 1 ] ) ],
+ [ 'href' => $this->getUrl( [ 'localsettings' => 1 ] ) ],
wfMessage( 'config-download-localsettings' )->parse()
);
}
$skinHtml .= $this->parent->getHelpBox( 'config-skins-help' ) .
- $this->getFieldSetEnd();
+ $this->getFieldsetEnd();
$this->addHTML( $skinHtml );
$extensions = $this->parent->findExtensions();
if ( $extensions ) {
- $extHtml = $this->getFieldSetStart( 'config-extensions' );
+ $extHtml = $this->getFieldsetStart( 'config-extensions' );
foreach ( $extensions as $ext ) {
$extHtml .= $this->parent->getCheckBox( [
}
$extHtml .= $this->parent->getHelpBox( 'config-extensions-help' ) .
- $this->getFieldSetEnd();
+ $this->getFieldsetEnd();
$this->addHTML( $extHtml );
}
$uploadwrapperStyle = $this->getVar( 'wgEnableUploads' ) ? '' : 'display: none';
$this->addHTML(
# Uploading
- $this->getFieldSetStart( 'config-upload-settings' ) .
+ $this->getFieldsetStart( 'config-upload-settings' ) .
$this->parent->getCheckBox( [
'var' => 'wgEnableUploads',
'label' => 'config-upload-enable',
'label' => 'config-instantcommons',
'help' => $this->parent->getHelpBox( 'config-instantcommons-help' )
] ) .
- $this->getFieldSetEnd()
+ $this->getFieldsetEnd()
);
$caches = [ 'none' ];
$hidden = ( $cacheval == 'memcached' ) ? '' : 'display: none';
$this->addHTML(
# Advanced settings
- $this->getFieldSetStart( 'config-advanced-settings' ) .
+ $this->getFieldsetStart( 'config-advanced-settings' ) .
# Object cache settings
// getRadioSet() builds a set of labeled radio buttons.
// For grep: The following messages are used as the item labels:
'help' => $this->parent->getHelpBox( 'config-memcached-help' )
] ) .
'</div>' .
- $this->getFieldSetEnd()
+ $this->getFieldsetEnd()
);
$this->endForm();
'opts' => $this->opts,
'title' => [
'ns' => $this->title->getNamespace(),
- 'key' => $this->title->getDbKey()
+ 'key' => $this->title->getDBkey()
]
];
}
$selector = $this->getTypeSelector();
$selector->setDefault( $queryType );
- return $selector->getHtml();
+ return $selector->getHTML();
}
/**
$doUserRightsLogLike = false;
if ( $this->types == [ 'rights' ] ) {
- $parts = explode( $wgUserrightsInterwikiDelimiter, $title->getDBKey() );
+ $parts = explode( $wgUserrightsInterwikiDelimiter, $title->getDBkey() );
if ( count( $parts ) == 2 ) {
list( $name, $database ) = array_map( 'trim', $parts );
if ( strstr( $database, '*' ) ) { // Search for wildcard in database name
$title,
[
'editor' => $editor->getName(),
- 'editorID' => $editor->getID(),
+ 'editorID' => $editor->getId(),
'timestamp' => $timestamp,
'summary' => $summary,
'minorEdit' => $minorEdit,
if ( $watchingUser->getOption( 'enotifwatchlistpages' )
&& ( !$minorEdit || $watchingUser->getOption( 'enotifminoredits' ) )
&& $watchingUser->isEmailConfirmed()
- && $watchingUser->getID() != $userTalkId
+ && $watchingUser->getId() != $userTalkId
&& !in_array( $watchingUser->getName(), $wgUsersNotifiedOnAllChanges )
&& !( $wgBlockDisablesLogin && $watchingUser->isBlocked() )
) {
$query
);
} elseif ( !empty( $options['file-link'] ) ) {
- $linkAttribs = [ 'href' => $this->file->getURL() ];
+ $linkAttribs = [ 'href' => $this->file->getUrl() ];
} else {
$linkAttribs = false;
if ( !empty( $options['title'] ) ) {
return ( $value > 0 );
} elseif ( $name == 'lang' ) {
// Validate $code
- if ( $value === '' || !Language::isValidBuiltinCode( $value ) ) {
+ if ( $value === '' || !Language::isValidBuiltInCode( $value ) ) {
wfDebug( "Invalid user language code\n" );
return false;
}
// @todo Find and store type of xml snippet. metadata['metadataType'] = "rdf"
if ( method_exists( $this->reader, 'readInnerXML' ) ) {
- $this->metadata[$metafield] = trim( $this->reader->readInnerXML() );
+ $this->metadata[$metafield] = trim( $this->reader->readInnerXml() );
} else {
throw new MWException( "The PHP XMLReader extension does not come " .
"with readInnerXML() method. Your libxml is probably out of " .
'height' => $scalerParams['clientHeight']
];
- return new ThumbnailImage( $image, $image->getURL(), null, $params );
+ return new ThumbnailImage( $image, $image->getUrl(), null, $params );
}
/**
* @return string
*/
public function getMetadata( $file, $filename ) {
- $header = self::getXCFMetadata( $filename );
+ $header = self::getXCFMetaData( $filename );
$metadata = [];
if ( $header ) {
// Try to be consistent with the names used by PNG files.
*/
protected function getContentObject() {
- if ( $this->mPage->getID() === 0 ) {
+ if ( $this->mPage->getId() === 0 ) {
# If this is a MediaWiki:x message, then load the messages
# and return the message value for x.
if ( $this->getTitle()->getNamespace() == NS_MEDIAWIKI ) {
$this->mRevision = Revision::newFromId( $oldid );
if ( $this->mRevision !== null ) {
// Revision title doesn't match the page title given?
- if ( $this->mPage->getID() != $this->mRevision->getPage() ) {
+ if ( $this->mPage->getId() != $this->mRevision->getPage() ) {
$function = [ get_class( $this->mPage ), 'newFromID' ];
$this->mPage = call_user_func( $function, $this->mRevision->getPage() );
}
->params( $oldid )
->numParams( 1 )
->parseAsBlock();
- $this->getContext()->getOutput()->addHtml( $msg );
+ $this->getContext()->getOutput()->addHTML( $msg );
return;
}
}
}
- if ( $this->mPage->getID() === 0 || $this->getOldID() ) {
+ if ( $this->mPage->getId() === 0 || $this->getOldID() ) {
# Non-articles (special pages etc), and old revisions
return [
'index' => 'noindex',
$outputPage->addSubtitle( "<div id=\"mw-{$infomsg}\">" .
$context->msg( $infomsg, $td )
->rawParams( $userlinks )
- ->params( $revision->getID(), $tddate, $tdtime, $revision->getUserText() )
+ ->params( $revision->getId(), $tddate, $tdtime, $revision->getUserText() )
->rawParams( Linker::revComment( $revision, true, true ) )
->parse() .
"</div>"
$cacheable = false;
if ( HTMLFileCache::useFileCache( $this->getContext() ) ) {
- $cacheable = $this->mPage->getID()
+ $cacheable = $this->mPage->getId()
&& !$this->mRedirectedFrom && !$this->getTitle()->isRedirect();
// Extension may have reason to disable file caching on some pages.
if ( $cacheable ) {
}
# No need to display noarticletext, we use our own message, output in openShowImage()
- if ( $this->mPage->getID() ) {
+ if ( $this->mPage->getId() ) {
# NS_FILE is in the user language, but this section (the actual wikitext)
# should be in page content language
$pageLang = $this->getTitle()->getPageViewLanguage();
*/
public function getContentObject() {
$this->loadFile();
- if ( $this->mPage->getFile() && !$this->mPage->getFile()->isLocal() && 0 == $this->getID() ) {
+ if ( $this->mPage->getFile() && !$this->mPage->getFile()->isLocal() && 0 == $this->getId() ) {
return null;
}
return parent::getContentObject();
if ( is_null( $currentLanguage ) ) {
$currentLanguage = $defaultLang;
}
- $out->addHtml( $this->doRenderLangOpt( $renderLangOptions, $currentLanguage, $defaultLang ) );
+ $out->addHTML( $this->doRenderLangOpt( $renderLangOptions, $currentLanguage, $defaultLang ) );
}
// Add cannot animate thumbnail warning
}
} else {
# Image does not exist
- if ( !$this->getID() ) {
+ if ( !$this->getId() ) {
# No article exists either
# Show deletion log to be consistent with normal articles
LogEventsList::showLogExtract(
// by Article::View().
$out->setRobotPolicy( 'noindex,nofollow' );
$out->wrapWikiMsg( "<div id='mw-imagepage-nofile' class='plainlinks'>\n$1\n</div>", $nofile );
- if ( !$this->getID() && $wgSend404Code ) {
+ if ( !$this->getId() && $wgSend404Code ) {
// If there is no image, no shared image, and no description page,
// output a 404, to be consistent with Article::showMissingArticle.
$request->response()->statusHeader( 404 );
/**
* Make the text under the image to say what size preview
*
- * @param $params Array parameters for thumbnail
+ * @param $params array parameters for thumbnail
* @param $sizeLinkBigImagePreview HTML for the current size
* @return string HTML output
*/
$descText = $this->mPage->getFile()->getDescriptionText( $this->getContext()->getLanguage() );
/* Add canonical to head if there is no local page for this shared file */
- if ( $descUrl && $this->mPage->getID() == 0 ) {
+ if ( $descUrl && $this->mPage->getId() == 0 ) {
$out->setCanonicalUrl( $descUrl );
}
$dbw->startAtomic( __METHOD__ );
$this->loadPageData( self::READ_LATEST );
- $id = $this->getID();
+ $id = $this->getId();
// T98706: lock the page from various other updates but avoid using
// WikiPage::READ_LOCKING as that will carry over the FOR UPDATE to
// the revisions queries (which also JOIN on user). Only lock the page
if ( is_null( $t ) ) {
return '';
}
- return wfEscapeWikiText( wfUrlEncode( str_replace( ' ', '_', $t->getRootText() ) ) );
+ return wfEscapeWikiText( wfUrlencode( str_replace( ' ', '_', $t->getRootText() ) ) );
}
public static function basepagename( $parser, $title = null ) {
$t = Title::newFromText( $title );
if ( is_null( $t ) ) {
return '';
}
- return wfEscapeWikiText( wfUrlEncode( str_replace( ' ', '_', $t->getBaseText() ) ) );
+ return wfEscapeWikiText( wfUrlencode( str_replace( ' ', '_', $t->getBaseText() ) ) );
}
public static function talkpagename( $parser, $title = null ) {
$t = Title::newFromText( $title );
$value = wfEscapeWikiText( $this->mTitle->getRootText() );
break;
case 'rootpagenamee':
- $value = wfEscapeWikiText( wfUrlEncode( str_replace(
+ $value = wfEscapeWikiText( wfUrlencode( str_replace(
' ',
'_',
$this->mTitle->getRootText()
$value = wfEscapeWikiText( $this->mTitle->getBaseText() );
break;
case 'basepagenamee':
- $value = wfEscapeWikiText( wfUrlEncode( str_replace(
+ $value = wfEscapeWikiText( wfUrlencode( str_replace(
' ',
'_',
$this->mTitle->getBaseText()
'page' => $title->getArticleID(),
'user_text' => $user->getName(),
'user' => $user->getId(),
- 'parent_id' => $title->getLatestRevId(),
+ 'parent_id' => $title->getLatestRevID(),
'title' => $title,
'content' => $content
] );
*/
protected function variantize( $variantConf, ResourceLoaderContext $context ) {
$dom = new DomDocument;
- $dom->loadXml( file_get_contents( $this->getPath( $context ) ) );
+ $dom->loadXML( file_get_contents( $this->getPath( $context ) ) );
$root = $dom->documentElement;
$wrapper = $dom->createElement( 'g' );
while ( $root->firstChild ) {
}
$root->appendChild( $wrapper );
$wrapper->setAttribute( 'fill', $variantConf['color'] );
- return $dom->saveXml();
+ return $dom->saveXML();
}
/**
*/
protected function massageSvgPathdata( $svg ) {
$dom = new DomDocument;
- $dom->loadXml( $svg );
+ $dom->loadXML( $svg );
foreach ( $dom->getElementsByTagName( 'path' ) as $node ) {
$pathData = $node->getAttribute( 'd' );
// Make sure there is at least one space between numbers, and that leading zero is not omitted.
$pathData = preg_replace( '/([ -])0(\d)/', '$1$2', $pathData );
$node->setAttribute( 'd', $pathData );
}
- return $dom->saveXml();
+ return $dom->saveXML();
}
/**
}
$status = $bp->getRestrictions()->check( $request );
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
$this->logger->info(
'Session "{session}": Restrictions check failed',
[
$dbw->update(
'user',
[ 'user_password_expires' => $dbw->timestampOrNull( $newExpire ) ],
- [ 'user_id' => $user->getID() ],
+ [ 'user_id' => $user->getId() ],
__METHOD__
);
}
}
$links = '';
$nt = $userObj->getUserPage();
- $id = $userObj->getID();
+ $id = $userObj->getId();
$talk = $nt->getTalkPage();
if ( $talk ) {
# Talk page link
],
];
$hiddenFields = [
- 'title' => $this->getPageTitle()->getPrefixedDBKey(),
+ 'title' => $this->getPageTitle()->getPrefixedDBkey(),
];
$htmlForm = HTMLForm::factory( 'inline', $formFields, $this->getContext() );
$htmlForm->addHiddenFields( $hiddenFields );
</div>
HTML;
- $out->addHtml( $this->getSummaryHtml() . $baseHtml );
+ $out->addHTML( $this->getSummaryHtml() . $baseHtml );
// The testrunner configures QUnit and essentially depends on it. However, test suites
// are reusable in environments that preload QUnit (or a compatibility interface to
// another framework). Therefore we have to load it ourselves.
- $out->addHtml( ResourceLoader::makeInlineScript(
+ $out->addHTML( ResourceLoader::makeInlineScript(
Xml::encodeJsCall( 'mw.loader.using', [
[ 'jquery.qunit', 'jquery.qunit.completenessTest' ],
new XmlJsCode(
htmlspecialchars( $filePage->getText() )
);
$download = Xml::element( 'a',
- [ 'href' => wfLocalFile( $filePage )->getURL() ],
+ [ 'href' => wfLocalFile( $filePage )->getUrl() ],
$imgfile
);
$download = $this->msg( 'parentheses' )->rawParams( $download )->escaped();
* @return string
*/
protected static function buildGroupLink( $group, $username ) {
- return User::makeGroupLinkHtml(
+ return User::makeGroupLinkHTML(
$group,
User::getGroupMember( $group, $username )
);
* Output closing </table>
*/
protected function outputTableEnd() {
- $this->getOutput()->addHtml( Html::closeElement( 'table' ) );
+ $this->getOutput()->addHTML( Html::closeElement( 'table' ) );
$this->getOutput()->addWikiText(
$this->msg( 'mediastatistics-bytespertype' )
->numParams( $this->totalPerType )
$user = User::newFromId( $row->img_user );
$title = Title::makeTitle( NS_FILE, $name );
- $ul = Linker::link( $user->getUserpage(), $user->getName() );
+ $ul = Linker::link( $user->getUserPage(), $user->getName() );
$time = $this->getLanguage()->userTimeAndDate( $row->img_timestamp, $this->getUser() );
$this->gallery->add(
);
$htmlForm->setMethod( 'get' );
- $out->addHtml( Xml::fieldset( $this->msg( 'newpages' )->text() ) );
+ $out->addHTML( Xml::fieldset( $this->msg( 'newpages' )->text() ) );
$htmlForm->show();
- $out->addHtml(
+ $out->addHTML(
Html::rawElement(
'div',
null,
$firstUser = $users[0];
- if ( !$firstUser instanceof User || !$firstUser->getID() ) {
+ if ( !$firstUser instanceof User || !$firstUser->getId() ) {
// Don't parse username as wikitext (bug 65501)
return [ [ 'nosuchuser', wfEscapeWikiText( $data['Username'] ) ] ];
}
'tables' => [ 'categorylinks', 'page' ],
'fields' => [ 'page_title', 'page_namespace' ],
'conds' => array_merge( [
- 'cl_to' => $this->category->getDBKey(),
+ 'cl_to' => $this->category->getDBkey(),
], $this->extra ),
'options' => [
'ORDER BY' => 'cl_timestamp ' . $dir,
$rclistOutput .= $list->endRecentChangesList();
if ( $rows->numRows() === 0 ) {
- $this->getOutput()->addHtml(
+ $this->getOutput()->addHTML(
'<div class="mw-changeslist-empty">' .
$this->msg( 'recentchanges-noresult' )->parse() .
'</div>'
$extraOpts = $this->getExtraOptions( $opts );
$extraOptsCount = count( $extraOpts );
$count = 0;
- $submit = ' ' . Xml::submitbutton( $this->msg( 'recentchanges-submit' )->text() );
+ $submit = ' ' . Xml::submitButton( $this->msg( 'recentchanges-submit' )->text() );
$out = Xml::openElement( 'table', [ 'class' => 'mw-recentchanges-table' ] );
foreach ( $extraOpts as $name => $optionRow ) {
}
// start rendering the page
- $out->addHtml(
+ $out->addHTML(
Xml::openElement(
'form',
[
$num = $titleMatchesNum + $textMatchesNum;
$totalRes = $numTitleMatches + $numTextMatches;
- $out->addHtml(
+ $out->addHTML(
# This is an awful awful ID name. It's not a table, but we
# named it poorly from when this was a table so now we're
# stuck with it
return;
}
- $out->addHtml( "<div class='searchresults'>" );
+ $out->addHTML( "<div class='searchresults'>" );
// prev/next links
$prevnext = null;
$out->addHTML( "<p class='mw-search-pager-bottom'>{$prevnext}</p>\n" );
}
- $out->addHtml( "</div>" );
+ $out->addHTML( "</div>" );
Hooks::run( 'SpecialSearchResultsAppend', [ $this, $out, $term ] );
) {
// invalid title
// preserve the paragraph for margins etc...
- $this->getOutput()->addHtml( '<p></p>' );
+ $this->getOutput()->addHTML( '<p></p>' );
return;
}
$this->getOutput()->wrapWikiMsg( "<p class=\"$linkClass\">\n$1</p>", $params );
} else {
// preserve the paragraph for margins etc...
- $this->getOutput()->addHtml( '<p></p>' );
+ $this->getOutput()->addHTML( '<p></p>' );
}
}
$headerText = $this->msg( 'tags-create-warnings-above', $tag,
count( $status->getWarningsArray() ) )->parseAsBlock() .
- $out->parse( $status->getWikitext() ) .
+ $out->parse( $status->getWikiText() ) .
$this->msg( 'tags-create-warnings-below' )->parseAsBlock();
$subform = new HTMLForm( $fields, $this->getContext() );
$out->addBacklinkSubtitle( $this->getPageTitle() );
return true;
} else {
- $out->addWikiText( "<div class=\"error\">\n" . $status->getWikitext() .
+ $out->addWikiText( "<div class=\"error\">\n" . $status->getWikiText() .
"\n</div>" );
return false;
}
if ( $block->mHideName ) {
# Something is deeply FUBAR if this is not a User object, but who knows?
$id = $block->getTarget() instanceof User
- ? $block->getTarget()->getID()
+ ? $block->getTarget()->getId()
: User::idFromName( $block->getTarget() );
RevisionDeleteUser::unsuppressUserName( $block->getTarget(), $id );
$page = Title::makeTitle( NS_USER, '#' . $block->getId() );
} else {
$page = $block->getTarget() instanceof User
- ? $block->getTarget()->getUserpage()
+ ? $block->getTarget()->getUserPage()
: Title::makeTitle( NS_USER, $block->getTarget() );
}
$this->getPageTitle( "file/$file" )->getLocalURL() ], $file )
);
}
- $this->getOutput()->addHtml( Html::rawElement( 'ul', [], $fileListItemsHtml ) );
+ $this->getOutput()->addHTML( Html::rawElement( 'ul', [], $fileListItemsHtml ) );
$form->displayForm( $formResult );
- $this->getOutput()->addHtml( Html::rawElement( 'p', [], $refreshHtml ) );
+ $this->getOutput()->addHTML( Html::rawElement( 'p', [], $refreshHtml ) );
} else {
- $this->getOutput()->addHtml( Html::rawElement( 'p', [],
+ $this->getOutput()->addHTML( Html::rawElement( 'p', [],
Html::element( 'span', [], $this->msg( 'uploadstash-nofiles' )->text() )
. ' '
. $refreshHtml
}
$isAutoCreated = false;
- if ( $u->getID() == 0 ) {
+ if ( $u->getId() == 0 ) {
$status = $this->attemptAutoCreate( $u );
if ( $status !== self::SUCCESS ) {
return $status;
}
$fetchedStatus = $this->fetchUser( $this->mTarget );
- if ( $fetchedStatus->isOk() ) {
+ if ( $fetchedStatus->isOK() ) {
$this->mFetchedUser = $fetchedStatus->value;
if ( $this->mFetchedUser instanceof User ) {
// Set the 'relevant user' in the skin, so it displays links like Contributions,
* @return string
*/
private static function buildGroupLink( $group ) {
- return User::makeGroupLinkHtml( $group, User::getGroupName( $group ) );
+ return User::makeGroupLinkHTML( $group, User::getGroupName( $group ) );
}
/**
* @return string
*/
private static function buildGroupMemberLink( $group ) {
- return User::makeGroupLinkHtml( $group, User::getGroupMember( $group ) );
+ return User::makeGroupLinkHTML( $group, User::getGroupMember( $group ) );
}
/**
$this->softwareInformation() .
$this->getEntryPointInfo()
);
- $out->addHtml(
+ $out->addHTML(
$this->getSkinCredits() .
$this->getExtensionCredits() .
$this->getExternalLibraries() .
];
$on['rd_namespace'] = $target->getNamespace();
// Inner LIMIT is 2X in case of stale backlinks with wrong namespaces
- $subQuery = $dbr->selectSqlText(
+ $subQuery = $dbr->selectSQLText(
[ $table, 'redirect', 'page' ],
[ $fromCol, 'rd_from' ],
$conds[$table],
$tStart = microtime( true );
$status = $this->repo->concatenate( $fileList, $tmpPath, FileRepo::DELETE_SOURCE );
$tAmount = microtime( true ) - $tStart;
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
return $status;
}
wfDebug( __METHOD__ . " update chunk status for {$this->mFileKey} offset:" .
$this->getOffset() . ' inx:' . $this->getChunkIndex() . "\n" );
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
// Use a quick transaction since we will upload the full temp file into shared
// storage, which takes time for large files. We don't want to hold locks then.
$dbw->update(
private function getChunkStatus() {
// get Master db to avoid race conditions.
// Otherwise, if chunk upload time < replag there will be spurious errors
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
$row = $dbw->selectRow(
'uploadstash',
[
}
wfDebugLog( 'fileupload', $status );
- if ( $status->isOk() ) {
+ if ( $status->isOK() ) {
wfDebugLog( 'fileupload', 'Download by URL completed successfuly.' );
} else {
wfDebugLog(
// insert the file metadata into the db.
wfDebug( __METHOD__ . " inserting $stashPath under $key\n" );
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
$serializedFileProps = serialize( $fileProps );
if ( strlen( $serializedFileProps ) > self::MAX_US_PROPS_SIZE ) {
}
wfDebug( __METHOD__ . ' clearing all rows for user ' . $this->userId . "\n" );
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
$dbw->delete(
'uploadstash',
[ 'us_user' => $this->userId ],
. ' No user is logged in, files must belong to users' );
}
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
// this is a cheap query. it runs on the master so that this function
// still works when there's lag. It won't be called all that often.
// Ensure we have the UploadStashFile loaded for this key
$this->getFile( $key, true );
- $dbw = $this->repo->getMasterDb();
+ $dbw = $this->repo->getMasterDB();
$dbw->delete(
'uploadstash',
. ' No user is logged in, files must belong to users' );
}
- $dbr = $this->repo->getSlaveDb();
+ $dbr = $this->repo->getSlaveDB();
$res = $dbr->select(
'uploadstash',
'us_key',
$dbr = null;
if ( $readFromDB === DB_MASTER ) {
// sometimes reading from the master is necessary, if there's replication lag.
- $dbr = $this->repo->getMasterDb();
+ $dbr = $this->repo->getMasterDB();
} else {
- $dbr = $this->repo->getSlaveDb();
+ $dbr = $this->repo->getSlaveDB();
}
$row = $dbr->selectRow(
// Check restrictions
$status = $bp->getRestrictions()->check( $request );
- if ( !$status->isOk() ) {
+ if ( !$status->isOK() ) {
return Status::newFatal( 'botpasswords-restriction-failed' );
}
// Get the "last viewed rev" timestamp from the oldest message notification
$timestamp = $dbr->selectField( 'user_newtalk',
'MIN(user_last_timestamp)',
- $this->isAnon() ? [ 'user_ip' => $this->getName() ] : [ 'user_id' => $this->getID() ],
+ $this->isAnon() ? [ 'user_ip' => $this->getName() ] : [ 'user_id' => $this->getId() ],
__METHOD__ );
$rev = $timestamp ? Revision::loadFromTimestamp( $dbr, $utp, $timestamp ) : null;
return [ [ 'wiki' => wfWikiID(), 'link' => $utp->getLocalURL(), 'rev' => $rev ] ];
if ( $this->getId() ) {
$dbw->insert( 'user_groups',
[
- 'ug_user' => $this->getID(),
+ 'ug_user' => $this->getId(),
'ug_group' => $group,
],
__METHOD__,
$dbw = wfGetDB( DB_MASTER );
$dbw->delete( 'user_groups',
[
- 'ug_user' => $this->getID(),
+ 'ug_user' => $this->getId(),
'ug_group' => $group,
], __METHOD__
);
// Remember that the user was in this group
$dbw->insert( 'user_former_groups',
[
- 'ufg_user' => $this->getID(),
+ 'ufg_user' => $this->getId(),
'ufg_group' => $group,
],
__METHOD__,
* @return bool
*/
public function isLoggedIn() {
- return $this->getID() != 0;
+ return $this->getId() != 0;
}
/**
* @return array Array of message keys (strings)
*/
public static function getMessageKeysFor( $code ) {
- return self::getLocalisationCache()->getSubItemList( $code, 'messages' );
+ return self::getLocalisationCache()->getSubitemList( $code, 'messages' );
}
/**
$wikiPage = new WikiPage( $sourceTitle );
$wikiPage->loadPageData( 'fromdbmaster' );
- $destId = $newTitle->getArticleId();
+ $destId = $newTitle->getArticleID();
$this->beginTransaction( $this->db, __METHOD__ );
$this->db->update( 'revision',
// SET
}
private function checkSyntax() {
- if ( !Sqlite::IsPresent() ) {
+ if ( !Sqlite::isPresent() ) {
$this->error( "Error: SQLite support not found\n" );
}
$files = [ $this->getOption( 'check-syntax' ) ];
if ( $path == "" ) {
return false;
}
- $text = ExternalStore::fetchFromUrl( $url );
+ $text = ExternalStore::fetchFromURL( $url );
}
if ( !in_array( 'object', $flags ) ) {
return false;
$this->compatChecks();
} else {
$this->output( "Skipping compatibility checks, proceed at your own risk (Ctrl+C to abort)\n" );
- wfCountdown( 5 );
+ wfCountDown( 5 );
}
// Check external dependencies are up to date
$updates[] = 'stats';
}
- $updater = DatabaseUpdater::newForDb( $db, $shared, $this );
+ $updater = DatabaseUpdater::newForDB( $db, $shared, $this );
$updater->doUpdates( $updates );
foreach ( $updater->getPostDatabaseUpdateMaintenance() as $maint ) {
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => $this->uploadDir . '/public',
'local-thumb' => $this->uploadDir . '/thumb',
'transformVia404' => false,
'backend' => new FSFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId(),
+ 'wikiId' => wfWikiID(),
'containerPaths' => [
'local-public' => $this->uploadDir,
'local-thumb' => $this->uploadDir . '/thumb',
# Set up the target
$u = User::newFromName( $username );
- if ( $u->getID() == 0 ) {
+ if ( $u->getId() == 0 ) {
$u->addToDatabase();
TestUser::setPasswordForUser( $u, 'TotallyObvious' );
}
public function testConstructFromRow() {
$orig = $this->makeRevision();
- $dbr = wfgetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'revision', '*', [ 'rev_id' => $orig->getId() ] );
$this->assertTrue( is_object( $res ), 'query failed' );
public function testNewFromRow() {
$orig = $this->makeRevision();
- $dbr = wfgetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'revision', '*', [ 'rev_id' => $orig->getId() ] );
$this->assertTrue( is_object( $res ), 'query failed' );
$orig = $page->getRevision();
$page->doDeleteArticle( 'test Revision::newFromArchiveRow' );
- $dbr = wfgetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'archive', '*', [ 'ar_rev_id' => $orig->getId() ] );
$this->assertTrue( is_object( $res ), 'query failed' );
$this->setUserPerm( [ "createpage" ] );
$this->setTitle( NS_MAIN, "test page" );
$this->title->mTitleProtection['permission'] = '';
- $this->title->mTitleProtection['user'] = $this->user->getID();
+ $this->title->mTitleProtection['user'] = $this->user->getId();
$this->title->mTitleProtection['expiry'] = 'infinity';
$this->title->mTitleProtection['reason'] = 'test';
$this->title->mCascadeRestriction = false;
$this->assertNotEquals( false, $serverName );
$serializedCookie = $cj->serializeToHttpRequest( $wgScriptPath, $serverName );
$this->assertNotEquals( '', $serializedCookie );
- $this->assertRegexp(
+ $this->assertRegExp(
'/_session=[^;]*; .*UserID=[0-9]*; .*UserName=' . $user->userName . '; .*Token=/',
$serializedCookie
);
$this->assertFalse( $exception );
// clean up
- $this->deleteFileByFilename( $fileName );
+ $this->deleteFileByFileName( $fileName );
}
/**
$this->assertTrue( $exception );
// clean up
- $this->deleteFileByFilename( $fileName );
+ $this->deleteFileByFileName( $fileName );
}
/**
$this->assertFalse( $exception );
// clean up
- $this->deleteFileByFilename( $fileName );
+ $this->deleteFileByFileName( $fileName );
}
/**
$this->assertFalse( $exception );
// clean up
- $this->deleteFileByFilename( $fileNames[0] );
- $this->deleteFileByFilename( $fileNames[1] );
+ $this->deleteFileByFileName( $fileNames[0] );
+ $this->deleteFileByFileName( $fileNames[1] );
}
/**
$this->assertFalse( $exception, "No UsageException exception." );
// clean up
- $this->deleteFileByFilename( $fileName );
+ $this->deleteFileByFileName( $fileName );
}
/**
$this->assertFalse( $exception );
// clean up
- $this->deleteFileByFilename( $fileName );
+ $this->deleteFileByFileName( $fileName );
}
}
$be = TestingAccessWrapper::newFromObject(
new FileBackendMultiWrite( [
'name' => 'localtesting',
- 'wikiId' => wfWikiId() . mt_rand(),
+ 'wikiId' => wfWikiID() . mt_rand(),
'backends' => [
[ // backend 0
'name' => 'multitesting0',
$be = TestingAccessWrapper::newFromObject(
new FileBackendMultiWrite( [
'name' => 'localtesting',
- 'wikiId' => wfWikiId() . mt_rand(),
+ 'wikiId' => wfWikiID() . mt_rand(),
'backends' => [
[ // backend 0
'name' => 'multitesting0',
[],
[ [
'name' => $this->backendName,
- 'wikiId' => wfWikiId()
+ 'wikiId' => wfWikiID()
] ] );
$wrapperMock = $this->getMock( 'FileBackendDBRepoWrapper',
*/
public function testGetThumbnailSource( $data ) {
$backendMock = $this->getMockBuilder( 'FSFileBackend' )
- ->setConstructorArgs( [ [ 'name' => 'backendMock', 'wikiId' => wfWikiId() ] ] )
+ ->setConstructorArgs( [ [ 'name' => 'backendMock', 'wikiId' => wfWikiID() ] ] )
->getMock();
$repoMock = $this->getMockBuilder( 'FileRepo' )
$this->setMwGlobals( 'wgThumbnailBuckets', $data['buckets'] );
$backendMock = $this->getMockBuilder( 'FSFileBackend' )
- ->setConstructorArgs( [ [ 'name' => 'backendMock', 'wikiId' => wfWikiId() ] ] )
+ ->setConstructorArgs( [ [ 'name' => 'backendMock', 'wikiId' => wfWikiID() ] ] )
->getMock();
$repoMock = $this->getMockBuilder( 'FileRepo' )
$this->markTestSkipped( "This test needs the xml extension." );
}
$handler = new BitmapMetadataHandler();
- $result = $handler->png( $this->filePath . 'xmp.png' );
+ $result = $handler->PNG( $this->filePath . 'xmp.png' );
$expected = [
'frameCount' => 0,
'loopCount' => 1,
*/
public function testPNGNative() {
$handler = new BitmapMetadataHandler();
- $result = $handler->png( $this->filePath . 'Png-native-test.png' );
+ $result = $handler->PNG( $this->filePath . 'Png-native-test.png' );
$expected = 'http://example.com/url';
$this->assertEquals( $expected, $result['metadata']['Identifier']['x-default'] );
}
# informations.
$backend = new MockFileBackend( [
'name' => 'local-backend',
- 'wikiId' => wfWikiId()
+ 'wikiId' => wfWikiID()
] );
}
'Passpass1' // password
);
$this->assertFalse( $statusLong->isGood(), 'Password matches blacklist' );
- $this->assertTrue( $statusLong->isOk(), 'Password matches blacklist, not fatal' );
+ $this->assertTrue( $statusLong->isOK(), 'Password matches blacklist, not fatal' );
}
}
public function testBasics() {
$provider = $this->getProvider();
- $this->assertTrue( $provider->persistsSessionID() );
+ $this->assertTrue( $provider->persistsSessionId() );
$this->assertFalse( $provider->canChangeUser() );
$this->assertNull( $provider->newSessionInfo() );
public function testBasics() {
$provider = new CookieSessionProvider( [ 'priority' => 10 ] );
- $this->assertTrue( $provider->persistsSessionID() );
+ $this->assertTrue( $provider->persistsSessionId() );
$this->assertTrue( $provider->canChangeUser() );
$msg = $provider->whyNoSession();
\ObjectCache::$instances[__METHOD__] = new TestBagOStuff();
$this->setMwGlobals( [ 'wgMainCacheType' => __METHOD__ ] );
- $this->setMWGlobals( [
+ $this->setMwGlobals( [
'wgAuth' => new AuthPlugin,
] );
// Actual HTML...
$this->assertEquals(
$expected,
- $this->getLang()->truncateHTML( $input, $len, $ellipsis )
+ $this->getLang()->truncateHtml( $input, $len, $ellipsis )
);
}
$dumper->prefetch = $prefetchMock;
$dumper->reporting = false;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::FULL, WikiExporter::TEXT );
"--maxtime=1" /*This is in minutes. Fixup is below*/,
"--buffersize=32768", // The default of 32 iterations fill up 32KB about twice
"--checkpointfile=checkpoint-%s-%s.xml.gz" ] );
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
$dumper->maxTimeAllowed = $checkpointAfter; // Patching maxTime from 1 minute
$dumper->stderr = $stderr;
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
$dumper->reporting = false;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::LOGS, WikiExporter::TEXT );
'--reporting=2' ] );
$dumper->startId = $this->logId1;
$dumper->endId = $this->logId3 + 1;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// xmldumps-backup demands reporting, although this is currently not
// implemented in BackupDumper, when dumping logging data. We
$dumper->loadWithArgv( [ '--full', '--quiet', '--output', 'file:' . $fname, '--stub' ] );
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->execute();
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
$dumper->reporting = false;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::CURRENT, WikiExporter::STUB );
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
$dumper->reporting = false;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// Performing the dump
$dumper->dump( WikiExporter::CURRENT, WikiExporter::STUB );
"--reporting=1000" ] );
$dumper->startId = $this->pageId1;
$dumper->endId = $this->pageId4 + 1;
- $dumper->setDb( $this->db );
+ $dumper->setDB( $this->db );
// xmldumps-backup uses reporting. We will not check the exact reported
// message, as they are dependent on the processing power of the used
* @covers SkinTemplate::addToSidebarPlain
*/
public function testTrickyPipe() {
- $this->assertSidebar(
+ $this->assertSideBar(
[ 'Title' => [
# The first 2 are skipped
# Doesn't really test the url properly
** http://www.mediawiki.org/| Home';
$bar = [];
- $this->skin->addToSideBarPlain( $bar, $text );
+ $this->skin->addToSidebarPlain( $bar, $text );
return $bar['Title'][0];
}