Changeset 1243

Show
Ignore:
Timestamp:
08/06/08 17:57:20 (4 months ago)
Author:
_ck_
Message:

0.2.1 set priority to dead last so ALL queries are tracked in bb_foot + another BB_IS_ADMIN bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-benchmark/trunk/_bb-benchmark.php

    r986 r1243  
    66Author: _ck_ 
    77Author URI: http://bbShowcase.org 
    8 Version: 0.2.0 
     8Version: 0.2.1 
    99 
    1010License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ 
     
    29290.19    : bug fix to hide output in some different situations 
    30300.2.0   : bug fix when checking BB_IS_ADMIN 
     310.2.1   : set priority to dead last so ALL queries are tracked in bb_foot, another BB_IS_ADMIN bug 
    3132*/ 
    3233 
     
    3637                global $bbdb;                    
    3738                 
    38         if (defined('BB_IS_ADMIN')) {echo '<div style="margin-top:-0.9em;text-align:center;">'.$bbdb->num_queries." queries </div>";} 
     39        if (defined('BB_IS_ADMIN') && BB_IS_ADMIN) {echo '<div style="margin-top:-0.9em;text-align:center;">'.$bbdb->num_queries." queries </div>";} 
    3940                 
    4041        echo " <!-- \n === benchmark & query results === \n\n";  
     
    9192endif;   
    9293} 
    93 add_action('bb_foot', 'bb_benchmark_output'); 
     94add_action('bb_foot', 'bb_benchmark_output',999); 
    9495add_action('bb_admin_footer', 'bb_benchmark_output'); 
    9596 
  • bb-benchmark/trunk/readme.txt

    r986 r1243  
    6767 
    6868* 0.2.0 : bug fix when checking BB_IS_ADMIN 
     69 
     70= Version 0.2.1 (2008-08-06) = 
     71 
     72* 0.2.1 : set priority to dead last so ALL queries are tracked in bb_foot, another BB_IS_ADMIN bug