Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bug fix: Fixing error when displaying a user's upcoming events

  • Loading branch information...
commit 200f50a3f5b9f5f0054699450484aab02e4d224d 1 parent 19b8dbb
Sabrina Leandro authored September 28, 2012
4  readme.txt
@@ -3,7 +3,7 @@ Contributors: saleandro, coox
3 3
 Tags: songkick, concerts, events, festivals, widget
4 4
 Requires at least: 2.8.2, PHP 5 or higher
5 5
 Tested up to: 3.4.2
6  
-Stable tag: 0.9.4.2
  6
+Stable tag: 0.9.4.3
7 7
 
8 8
 This plugin lets you display events for a Songkick user, artist, venue, or metro area on your WordPress blog, as a widget or shortcode.
9 9
 
@@ -140,3 +140,5 @@ See Songkick’s admin settings for details.
140 140
 = 0.9.4.2 =
141 141
 * Sort order of past events is descending
142 142
 
  143
+= 0.9.4.3 =
  144
+* Bug fix: Fixing error when displaying a user's upcoming events
2  songkick_concerts_and_festivals.php
@@ -6,7 +6,7 @@
6 6
 Description: Plugin to show concerts based on your Songkick profile. It can display upcoming events for a user, an artist, venue, or metro area/location.
7 7
 It can also display past events for users and artists. For a user, simply put your username in the admin interface. For an artist, you should use the artist's Songkick id, as shown in the url for your artist page.
8 8
 For example, the url "http://www.songkick.com/artists/123-your-name" has the id "123". The same goes for metro areas or venues: "http://www.songkick.com/venues/123-venue-name" and "http://www.songkick.com/metro_areas/123-city-name" both have the id "123".
9  
-Version: 0.9.4.2
  9
+Version: 0.9.4.3
10 10
 Author: Sabrina Leandro
11 11
 Author URI: http://github.com/saleandro
12 12
 License: GPL3
2  songkick_presentable_events.php
@@ -18,7 +18,7 @@ function SongkickPresentableEvents($options) {
18 18
         }
19 19
         $apikey     = (isset($options['apikey'])) ? $options['apikey'] : null;
20 20
         $attendance = (isset($options['attendance'])) ? $options['attendance'] : false;
21  
-        $gigography = (isset($options['gigography'])) ? $options['gigography'] : false;
  21
+        $gigography = (isset($options['gigography']) && $options['gigography'] == 'true') ? true : false;
22 22
         $order      = (isset($options['order'])) ? $options['order'] : null;
23 23
 
24 24
         $this->number_of_events = (isset($options['number_of_events']) && is_numeric($options['number_of_events'])) ? $options['number_of_events'] : 10;
2  songkick_user_events.php
@@ -23,7 +23,7 @@ protected function url($page, $per_page) {
23 23
             if (!$this->order)
24 24
                 $this->order = 'desc';
25 25
         } else {
26  
-            $method = "calendar";
  26
+            $method = "events";
27 27
             if (!$this->order)
28 28
                 $this->order = 'asc';
29 29
         }

0 notes on commit 200f50a

Please sign in to comment.
Something went wrong with that request. Please try again.