X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=profileinfo.php;h=47875941165fac32579f0b9dbac97db7083835e5;hb=311754120112539f2ad24bb230a9d536b1216802;hp=068c58b83bcf5449fe0f3923c70db6f9d4d1a14c;hpb=66d0bc0527f6c04495be1605e5a28b9e7a8c033e;p=lhc%2Fweb%2Fwiklou.git diff --git a/profileinfo.php b/profileinfo.php index 068c58b83b..4787594116 100644 --- a/profileinfo.php +++ b/profileinfo.php @@ -95,8 +95,7 @@ header( 'Content-Type: text/html; charset=utf-8' ); .table th, .table td { - padding: 8px; - line-height: 20px; + padding: 0.1em; text-align: left; vertical-align: top; border-top: 1px solid #ddd; @@ -156,9 +155,9 @@ $dbr = wfGetDB( DB_SLAVE ); if( !$dbr->tableExists( 'profiling' ) ) { echo '

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

' - . '

If you want to log profiling data, create the table using ' - . 'maintenance/archives/patch-profiling.sql and enable ' - . '$wgProfileToDatabase.

' + . '

If you want to log profiling data, enable $wgProfileToDatabase' + . ' in your LocalSettings.php and run maintenance/update.php to' + . ' create the profiling table.' . ''; exit( 1 ); } @@ -193,10 +192,12 @@ class profile_point { $ex = isset( $expand[$this->name()] ); + $anchor = str_replace( '"', '', $this->name() ); + if ( !$ex ) { if ( count( $this->children ) ) { $url = getEscapedProfileUrl( false, false, $expand + array( $this->name() => true ) ); - $extet = ' [+]'; + $extet = " [+]"; } else { $extet = ''; } @@ -207,8 +208,8 @@ class profile_point { $e += array( $name => $ep ); } } - - $extet = ' [–]'; + $url = getEscapedProfileUrl( false, false, $e ); + $extet = " [–]"; } ?>