Plugin Directory

Changeset 1254459


Ignore:
Timestamp:
09/27/2015 12:45:56 PM (10 years ago)
Author:
hoest
Message:

Update release 1.6

Location:
knvb-api/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • knvb-api/trunk/knvb-client.php

    r1082945 r1254459  
    6060
    6161    if(isset($json_data) && property_exists($json_data, 'List')) {
     62      usort($json_data->List, function($a, $b) {
     63        if(property_exists($a, 'Datum') && property_exists($a, 'Tijd') &&
     64           property_exists($b, 'Datum') && property_exists($b, 'Tijd') &&
     65           isset($a->Datum) && isset($a->Tijd) &&
     66           isset($b->Datum) && isset($b->Tijd)) {
     67          $dt_a = str_replace('-', '', $a->Datum) . $a->Tijd;
     68          $dt_b = str_replace('-', '', $b->Datum) . $b->Tijd;
     69
     70          return strcmp($dt_a, $dt_b);
     71        }
     72      });
     73
    6274      return $json_data->List;
    6375    }
  • knvb-api/trunk/readme.txt

    r1082945 r1254459  
    44Tags: knvb, voetbal, api, soccer, dutch
    55Requires at least: 3.0.1
    6 Tested up to: 4.1
    7 Stable tag: 1.5
     6Tested up to: 4.3
     7Stable tag: 1.6
    88
    99This plugin can be used for Dutch football clubs with a WordPress wedsite and a API-key for the KNVB data-API: http://www.knvbdataservice.nl/
Note: See TracChangeset for help on using the changeset viewer.