X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=profileinfo.php;h=0a60b08a277b5377fbb373a87f0821d4ddcdfe74;hp=9ebd57b7a241e389056601d7ccc3c740a93773e8;hb=2af23b87c9dbc7be3af839dea25bb39e8fc2ec07;hpb=a93cf8f4eee40a448bcd99b8fe1c32dc80775b6b diff --git a/profileinfo.php b/profileinfo.php index 9ebd57b7a2..0a60b08a27 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -1,6 +1,17 @@ tableExists( 'profiling' ) ) { echo '

No profiling table exists, so we can\'t show you anything.

' . '

If you want to log profiling data, enable $wgProfiler[\'output\'] = \'db\'' - . ' in your StartProfiler.php and run maintenance/update.php to' + . ' in LocalSettings.php and run maintenance/update.php to' . ' create the profiling table.' . ''; exit( 1 ); @@ -284,7 +294,7 @@ class profile_point { public function fmttime() { return sprintf( '%5.02f', $this->time ); } -}; +} function compare_point( profile_point $a, profile_point $b ) { // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.wgPrefix @@ -396,8 +406,8 @@ if ( isset( $_REQUEST['filter'] ) ) { return htmlspecialchars( '?' . wfArrayToCgi( [ - 'filter' => $_filter ? $_filter : $filter, - 'sort' => $_sort ? $_sort : $sort, + 'filter' => $_filter ?: $filter, + 'sort' => $_sort ?: $sort, 'expand' => implode( ',', array_keys( $_expand ) ) ] ) );