public function importUpload( $revision ) {
$dbw = wfGetDB( DB_MASTER );
return $dbw->deadlockLoop( array( $revision, 'importUpload' ) );
- return false;
}
/**
'section' => 'searchoptions/advancedsearchoptions',
);
- // Searchable namespaces back-compat with old format
- $searchableNamespaces = SearchEngine::searchableNamespaces();
-
$nsOptions = array();
foreach ( $wgContLang->getNamespaces() as $ns => $name ) {
* @return String: html
*/
protected static function link( User $user ) {
- global $wgUser, $wgHiddenPrefs;
+ global $wgHiddenPrefs;
if ( !in_array( 'realname', $wgHiddenPrefs ) && !$user->isAnon() ) {
$real = $user->getRealName();
} else {
* @return String: html
*/
protected function othersLink() {
- global $wgUser;
return Linker::link(
$this->getTitle(),
wfMsgHtml( 'others' ),
}
public function removeIdentifierQuotes( $s ) {
- return strpos($s, '/*Q*/') === FALSE ? $s : substr($s, 5); ;
+ return strpos($s, '/*Q*/') === FALSE ? $s : substr($s, 5);
}
public function isQuotedIdentifier( $s ) {
* @param $text String
*/
function update($id, $title, $text) {
- global $wgDBprefix;
$dbw = wfGetDB(DB_MASTER);
$dbw->replace('searchindex',
array('si_page'),