* $wgAddGroups, $wgRemoveGroups - Finer control over who can assign which
usergroups
* $wgEnotifImpersonal, $wgEnotifUseJobQ - Bulk mail options for large sites
-* $wgShowHostnames - Shows host names in API results and HTML comments
+* $wgShowHostnames - Expose server host names through the API and HTML comments
== New features since 1.10 ==
$wgShowExceptionDetails = false;
/**
- * If set to true, exposes host names through API and HTML comments.
+ * Expose server host names through the API and various HTML comments
*/
$wgShowHostnames = false;
-
-/** * disable experimental dmoz-like category browsing. Output things like:
- * Encyclopedia > Music > Style of Music > Jazz
+
+/**
+ * Use experimental, DMOZ-like category browser
*/
$wgUseCategoryBrowser = false;
* show a more obvious warning.
*/
$wgSlaveLagWarning = 10;
-$wgSlaveLagCritical = 30;
-
-
+$wgSlaveLagCritical = 30;
\ No newline at end of file
$now = wfTime();
$elapsed = $now - $wgRequestTime;
- if ($wgShowHostnames) {
- return sprintf( "<!-- Served by %s in %01.3f secs. -->", wfHostname(), $elapsed );
- } else {
- return sprintf( "<!-- Served in %01.3f secs. -->", $elapsed );
- }
+ return $wgShowHostnames
+ ? sprintf( "<!-- Served by %s in %01.3f secs. -->", wfHostname(), $elapsed )
+ : sprintf( "<!-- Served in %01.3f secs. -->", $elapsed );
}
/**
function checkMaxLag( $maxLag ) {
global $wgLoadBalancer, $wgShowHostnames;
-
list( $host, $lag ) = $wgLoadBalancer->getMaxLag();
if ( $lag > $maxLag ) {
header( 'HTTP/1.1 503 Service Unavailable' );
header( 'Retry-After: ' . max( intval( $maxLag ), 5 ) );
header( 'X-Database-Lag: ' . intval( $lag ) );
header( 'Content-Type: text/plain' );
- if ($wgShowHostnames) {
+ if( $wgShowHostnames ) {
echo "Waiting for $host: $lag seconds lagged\n";
} else {
echo "Waiting for a database server: $lag seconds lagged\n";