Changeset 1243
- Timestamp:
- 08/06/08 17:57:20 (4 months ago)
- Files:
-
- bb-benchmark/trunk/_bb-benchmark.php (modified) (4 diffs)
- bb-benchmark/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-benchmark/trunk/_bb-benchmark.php
r986 r1243 6 6 Author: _ck_ 7 7 Author URI: http://bbShowcase.org 8 Version: 0.2. 08 Version: 0.2.1 9 9 10 10 License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ … … 29 29 0.19 : bug fix to hide output in some different situations 30 30 0.2.0 : bug fix when checking BB_IS_ADMIN 31 0.2.1 : set priority to dead last so ALL queries are tracked in bb_foot, another BB_IS_ADMIN bug 31 32 */ 32 33 … … 36 37 global $bbdb; 37 38 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>";} 39 40 40 41 echo " <!-- \n === benchmark & query results === \n\n"; … … 91 92 endif; 92 93 } 93 add_action('bb_foot', 'bb_benchmark_output' );94 add_action('bb_foot', 'bb_benchmark_output',999); 94 95 add_action('bb_admin_footer', 'bb_benchmark_output'); 95 96 bb-benchmark/trunk/readme.txt
r986 r1243 67 67 68 68 * 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
