Changeset 193355
- Timestamp:
- 01/12/2010 09:20:07 PM (16 years ago)
- Location:
- lifestream/trunk
- Files:
-
- 9 edited
-
CHANGES (modified) (1 diff)
-
extensions/github/extension.inc.php (modified) (1 diff)
-
extensions/goodreads/extension.inc.php (modified) (2 diffs)
-
extensions/lastfm/extension.inc.php (modified) (1 diff)
-
extensions/upcoming/extension.inc.php (modified) (1 diff)
-
extensions/xboxlive/extension.inc.php (modified) (1 diff)
-
extensions/youtube/extension.inc.php (modified) (1 diff)
-
inc/core.php (modified) (2 diffs)
-
inc/labels.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lifestream/trunk/CHANGES
r191702 r193355 8 8 * Upon activating the plugin the default feed is now owned by the user performing the activation. 9 9 * Added much needed "less suck" to the GitHub extension. 10 * Added Ustream extension. 10 11 11 12 0.99.9.5 -
lifestream/trunk/extensions/github/extension.inc.php
r191702 r193355 44 44 $data['branch'] = $repo[0]; 45 45 $data['repository'] = $repo[1]; 46 $data['id'] = $data['id'].':'.$data['repository']; 46 47 return $data; 47 48 } -
lifestream/trunk/extensions/goodreads/extension.inc.php
r191677 r193355 61 61 function fetch() 62 62 { 63 $response = $this->lifestream->file_get_contents($this->get_url()); 63 $url = $this->get_url(); 64 $response = $this->lifestream->file_get_contents($url); 64 65 65 66 if ($response) … … 74 75 return $items; 75 76 } 76 }} 77 } 78 } 77 79 $lifestream->register_feed('Lifestream_GoodReadsFeed'); 78 80 ?> -
lifestream/trunk/extensions/lastfm/extension.inc.php
r191677 r193355 57 57 function fetch() 58 58 { 59 $response = $this->lifestream->file_get_contents($this->get_url()); 59 $url = $this->get_url(); 60 $response = $this->lifestream->file_get_contents($url); 60 61 if ($response) 61 62 { -
lifestream/trunk/extensions/upcoming/extension.inc.php
r191677 r193355 65 65 function fetch() 66 66 { 67 $response = $this->lifestream->file_get_contents($this->get_url()); 67 $url = $this->get_url(); 68 $response = $this->lifestream->file_get_contents($url); 68 69 if ($response) 69 70 { -
lifestream/trunk/extensions/xboxlive/extension.inc.php
r191677 r193355 46 46 function fetch() 47 47 { 48 $response = $this->lifestream->file_get_contents($this->get_url()); 48 $url = $this->get_url(); 49 $response = $this->lifestream->file_get_contents($url); 49 50 50 51 if ($response) -
lifestream/trunk/extensions/youtube/extension.inc.php
r191677 r193355 32 32 } 33 33 34 function get_posted_url() { 34 function get_posted_url() 35 { 35 36 return 'http://gdata.youtube.com/feeds/api/users/'.$this->get_option('username').'/uploads?v=2'; 36 }37 } 37 38 38 function get_favorited_url() { 39 function get_favorited_url() 40 { 39 41 return 'http://gdata.youtube.com/feeds/api/users/'.$this->get_option('username').'/favorites?v=2'; 40 }42 } 41 43 42 function get_url() { 44 function get_url() 45 { 43 46 $urls = array(); 44 47 $urls[] = array($this->get_posted_url(), 'video'); -
lifestream/trunk/inc/core.php
r191704 r193355 20 20 function lifestream_array_key_pop($array, $key) 21 21 { 22 $value = $array[$key];22 $value = @$array[$key]; 23 23 unset($array[$key]); 24 24 return $value; … … 1119 1119 $values['feed_label'] = $_POST['feed_label']; 1120 1120 $values['icon_url'] = $_POST['icon_url']; 1121 $values['auto_icon'] = $_POST['auto_icon'];1121 $values['auto_icon'] = @$_POST['auto_icon']; 1122 1122 if (current_user_can('manage_options')) 1123 1123 { -
lifestream/trunk/inc/labels.php
r191707 r193355 781 781 } 782 782 } 783 class Lifestream_StreamLabel extends Lifestream_Label 784 { 785 const TEMPLATE = 'photo'; 786 787 function get_label_single() 788 { 789 return $this->lifestream->__('Started streaming %2$s.', $this->get_feed_label(), $this->get_single_link()); 790 } 791 function get_label_single_user() 792 { 793 return $this->lifestream->__('%1$s started streaming %3$s.', $this->get_user_label(), $this->get_feed_label(), $this->get_single_link()); 794 } 795 796 function get_label_plural() 797 { 798 return $this->lifestream->__('Streamed %s events.', $this->_get_show_details_link(), $this->get_feed_label()); 799 } 800 801 function get_label_plural_user() 802 { 803 return $this->lifestream->__('%s streamed %s events.', $this->get_user_label(), $this->_get_show_details_link(), $this->get_feed_label()); 804 } 805 } 783 806 ?>
Note: See TracChangeset
for help on using the changeset viewer.