Chad has uploaded a new change for review.
https://gerrit.wikimedia.org/r/169631
Change subject: Remove back-compat profiling configuration
......................................................................
Remove back-compat profiling configuration
This old style was deprecated like 3 or 4 releases ago
Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f
---
M includes/profiler/Profiler.php
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/31/169631/1
diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php
index 418b5d4..aaf899f 100644
--- a/includes/profiler/Profiler.php
+++ b/includes/profiler/Profiler.php
@@ -143,14 +143,10 @@
if ( is_array( $wgProfiler ) ) {
if ( !isset( $wgProfiler['class'] ) ) {
$class = 'ProfilerStub';
- } elseif ( $wgProfiler['class'] === 'Profiler'
) {
- $class = 'ProfilerStub'; // b/c; don't
explode
} else {
$class = $wgProfiler['class'];
}
self::$__instance = new $class( $wgProfiler );
- } elseif ( $wgProfiler instanceof Profiler ) {
- self::$__instance = $wgProfiler; // back-compat
} else {
self::$__instance = new ProfilerStub( array() );
}
--
To view, visit https://gerrit.wikimedia.org/r/169631
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic61424aacb376151019a08ade214fea655d82a3f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Chad <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits