Newer
Older
Import / web / www.xiaofrog.com / wiki / includes / PageQueryPage.php
@John Ryland John Ryland on 22 Dec 2020 585 bytes import NUC files
<?php

/**
 * Variant of QueryPage which formats the result as a simple link to the page
 *
 * @package MediaWiki
 * @addtogroup SpecialPage
 */
class PageQueryPage extends QueryPage {

	/**
	 * Format the result as a simple link to the page
	 *
	 * @param Skin $skin
	 * @param object $row Result row
	 * @return string
	 */
	public function formatResult( $skin, $row ) {
		global $wgContLang;
		$title = Title::makeTitleSafe( $row->namespace, $row->title );
		return $skin->makeKnownLinkObj( $title,
			htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) );
	}
}