details.
* $wgProfiling has been removed.
* The spyc library is now no longer included in phase3.
+* (bug 28343) Unused preferences contextlines/contextchars have been removed
=== New features in 1.18 ===
* (bug 8130) Query pages should limit to content namespaces, not just main
$wgDefaultUserOptions = array(
'ccmeonemails' => 0,
'cols' => 80,
- 'contextchars' => 50,
- 'contextlines' => 5,
'date' => 'default',
'diffonly' => 0,
'disablemail' => 0,
'section' => 'searchoptions/displaysearchoptions',
'min' => 0,
);
- $defaultPreferences['contextlines'] = array(
- 'type' => 'int',
- 'label-message' => 'contextlines',
- 'section' => 'searchoptions/displaysearchoptions',
- 'min' => 0,
- );
- $defaultPreferences['contextchars'] = array(
- 'type' => 'int',
- 'label-message' => 'contextchars',
- 'section' => 'searchoptions/displaysearchoptions',
- 'min' => 0,
- );
global $wgEnableMWSuggest;
if ( $wgEnableMWSuggest ) {
}
/**
- * Find snippet highlight settings for a given user
+ * Find snippet highlight settings for all users
*
- * @param $user User
* @return Array contextlines, contextchars
*/
- public static function userHighlightPrefs( &$user ) {
- // $contextlines = $user->getOption( 'contextlines', 5 );
- // $contextchars = $user->getOption( 'contextchars', 50 );
+ public static function userHighlightPrefs() {
$contextlines = 2; // Hardcode this. Old defaults sucked. :)
$contextchars = 75; // same as above.... :P
return array( $contextlines, $contextchars );
'columns' => 'Columns:',
'searchresultshead' => 'Search',
'resultsperpage' => 'Hits per page:',
-'contextlines' => 'Lines per hit:',
-'contextchars' => 'Context per line:',
'stub-threshold' => 'Threshold for <a href="#" class="stub">stub link</a> formatting (bytes):',
'stub-threshold-disabled' => 'Disabled',
'recentchangesdays' => 'Days to show in recent changes:',
'columns',
'searchresultshead',
'resultsperpage',
- 'contextlines',
- 'contextchars',
'stub-threshold',
'stub-threshold-disabled',
'recentchangesdays',