diff options
Diffstat (limited to 'includes/Profiler.php')
-rw-r--r-- | includes/Profiler.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/Profiler.php b/includes/Profiler.php index cef89dd3..ffb48978 100644 --- a/includes/Profiler.php +++ b/includes/Profiler.php @@ -355,8 +355,7 @@ class Profiler { # Do not log anything if database is readonly (bug 5375) if( wfReadOnly() ) { return; } - # Warning: $wguname is a live patch, it should be moved to Setup.php - global $wguname, $wgProfilePerHost; + global $wgProfilePerHost; $dbw = wfGetDB( DB_MASTER ); if( !is_object( $dbw ) ) @@ -366,7 +365,7 @@ class Profiler { $name = substr($name, 0, 255); if( $wgProfilePerHost ){ - $pfhost = $wguname['nodename']; + $pfhost = wfHostname(); } else { $pfhost = ''; } |