Skip to content

Commit

Permalink
Merge pull request #228 from jsit/master
Browse files Browse the repository at this point in the history
Fixing issue 227: re-defining '$templates' in count_premium_templates()
  • Loading branch information
jptksc committed Aug 25, 2013
2 parents 88b01c3 + aa7b506 commit 484330f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dropplets/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ function get_premium_templates($type = 'all', $target = 'blank') {
}

function count_premium_templates($type = 'all') {

$templates = simplexml_load_file('http://dropplets.com/marketplace/templates-'. $type .'.xml');

if($templates===FALSE) {
// Feed not available.
} else {
Expand Down

0 comments on commit 484330f

Please sign in to comment.