diff --git a/app/omb/plugins/security.php b/app/omb/plugins/security.php index 942d034..b5eb585 100755 --- a/app/omb/plugins/security.php +++ b/app/omb/plugins/security.php @@ -1952,6 +1952,7 @@ function setup_new_tweetiepic( &$rec ) { function set_my_tweetiepic_pass() { $stream = get_option('tweetiepic_stream',get_profile_id()); + global $db; if ($stream){ $Blog =& $db->model('Blog'); @@ -1982,7 +1983,6 @@ function set_my_tweetiepic_pass() { function render_rss_feed($pro,$tweets){ global $request; - $loopcount = 0; echo ' @@ -2001,8 +2001,7 @@ function render_rss_feed($pro,$tweets){ '; while ($p = $tweets->MoveNext()) { - $loopcount++; - if ($loopcount > 1) break; + $posturl = $request->url_for(array('resource'=>'posts','id'=>$p->id)); $comurl = $posturl; echo '