trigger http error when non-text content is requested using action=raw
[lhc/web/wiklou.git] / profileinfo.php
index b47033a..1549349 100644 (file)
@@ -80,8 +80,8 @@ if ( !$wgEnableProfileInfo ) {
 
 $dbr = wfGetDB( DB_SLAVE );
 
-if( !$dbr->tableExists( 'profileinfo' ) ) {
-       echo "<p>No 'profileinfo' table exists, so we can't show you anything.</p>\n";
+if( !$dbr->tableExists( 'profiling' ) ) {
+       echo "<p>No 'profiling' table exists, so we can't show you anything.</p>\n";
        echo "<p>If you want to log profiling data, create the table using "
                . "<tt>maintenance/archives/patch-profiling.sql</tt> and enable "
                . "<tt>\$wgProfileToDatabase</tt>.</p>\n";
@@ -199,7 +199,7 @@ class profile_point {
        }
 };
 
-function compare_point( $a, $b ) {
+function compare_point(profile_point $a, profile_point $b) {
        global $sort;
        switch ( $sort ) {
        case "name":