Changeset 948
- Timestamp:
- 03/14/08 19:26:10 (9 months ago)
- Files:
-
- bbpress-polls/trunk/bb-polls.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bbpress-polls/trunk/bb-polls.php
r947 r948 186 186 bb_polls_add_header(); // add_action('bb_send_headers', 'bb_polls_add_header'); 187 187 add_action('bb_head', 'bb_polls_add_css'); 188 add_action('bb_head','bb_polls_add_javascript'); 188 189 add_filter('topic_title', 'bb_polls_title'); 189 190 add_action('topicmeta','bb_polls_pre_poll',200); … … 196 197 $user_id=bb_get_current_user_info( 'id' ); 197 198 $administrator=bb_current_user_can('administrate'); 198 bb_polls_add_javascript($topic_id); // ajax-ish199 199 if (!$edit_poll && isset($_GET['edit_poll'])) {$edit_poll= intval($_GET['edit_poll']);} 200 200 if ($edit_poll || ! isset($topic->poll_options)) { // no saved poll question with options … … 458 458 } 459 459 460 function bb_polls_add_javascript($topic_id ) {460 function bb_polls_add_javascript($topic_id=0) { 461 461 global $bb_polls; 462 462 if ($bb_polls['use_ajax']) :
