Changeset 669 for plugins/lifestream/trunk/lifestream.plugin.php
- Timestamp:
- 07/04/08 22:02:21 (5 months ago)
- Files:
-
- 1 modified
-
plugins/lifestream/trunk/lifestream.plugin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/lifestream/trunk/lifestream.plugin.php
r668 r669 167 167 } 168 168 169 public function json_entries($type = 'any', $offset = 0, $number = 20) {170 returnjson_encode($this->get_entries($type, $offset, $number, 'array'));169 public function action_ajax_lifestream_entries($type = 'any', $offset = 0, $number = 20) { 170 echo json_encode($this->get_entries($type, $offset, $number, 'array')); 171 171 } 172 172 … … 187 187 public function act_display_lifestream() { 188 188 $vars = Controller::get_handler_vars(); 189 190 $this->fetch_feeds(); 189 191 190 192 if(!isset($vars['type'])) { … … 218 220 if ( $enclosure = $entry->get_enclosure( 0 ) ) { 219 221 $data['data'] = $enclosure->get_link(); 222 $this->stream_contents[$date]= $data; 220 223 } 221 222 $this->stream_contents[$date]= $data;223 224 224 225 } 225 226 } 226 227 } 227 228 ksort( $this->stream_contents ); 229 228 230 229 LifeStream::insert($this->stream_contents); 231 230
