As an anonymous user, you can only add new data. If you would like to also modify existing data, please create an account and indicate your languages on your user page.

User:Kipcool/dev/localmodifs

From OmegaWiki
Jump to: navigation, search

Local modifications on the OmegaWiki server (from MediaWiki 1.18)

Search in the Expression: namespace (16)[edit]

To allow for default search (for MWSuggest) in the Expression namespace instead of always looking at the user preferences

OutputPage.php[edit]

...
protected function getJSVars() {
 global $wgUseAjax, $wgEnableMWSuggest, $wgContLang, $wgSearchNamespaces;
...
if ( $wgUseAjax && $wgEnableMWSuggest && !$this->getUser()->getOption( 'disablesuggest', false ) ) {
 if ( $wgSearchNamespaces ) {
  $vars['wgSearchNamespaces'] = $wgSearchNamespaces ;
 } else {
  $vars['wgSearchNamespaces'] = SearchEngine::userNamespaces( $this->getUser() );
 }
}

LocalSettings.php[edit]

$wgEnableMWSuggest = true ;
$wgSearchNamespaces[] = 16 ;


Statistics always from cache[edit]

The function isSane is looking for conditions whether the statistics from cache look ok or should be recalculated. For OmegaWiki, the condition $row->ss_total_edits < $row->ss_total_pages does not apply because of content imported directly in the database.

includes/SiteStats.php[edit]

private static function isSane( $row ) {
 return true;
}

System messages[edit]

MediaWiki:pagetitle , $1 - OmegaWiki: Multilingual Dictionary