Changeset 1320
- Timestamp:
- 09/02/08 14:36:56 (3 months ago)
- Files:
-
- bb-topic-views/trunk/bb-topic-views.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-topic-views/trunk/bb-topic-views.php
r1316 r1320 6 6 Author: Mike Wittmann, _ck_ 7 7 Author URI: http://blog.wittmania.com/ 8 Version: 1.6. 18 Version: 1.6.2 9 9 */ 10 10 … … 62 62 63 63 function get_view_count ( $topic_id ) { 64 global $bbdb; 64 global $bbdb, $topic; 65 66 if (isset($topic->views) && $topic->topic_id===$topic_id) {return $topic->views;} // bypass db for cached data 65 67 66 68 if (bb_get_option('bb_db_version')>1600) { // bbPress 1.0 … … 74 76 } 75 77 76 //If it already set, it just returns the value78 //If it already set, it just returns the value 77 79 78 80 if ($view_count<=0) { //If the view count hasn't bee initialized yet, this will initialize the value before it is returned
