Skip to content

Commit

Permalink
Merge pull request #63 from NuCivic/3494-move-odfe-fields
Browse files Browse the repository at this point in the history
Added check to avoid definition of class multiple times.
  • Loading branch information
dafeder authored Aug 23, 2016
2 parents 9a651aa + 2b1b9af commit cc92d5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/open_data_schema_pod/open_data_schema_pod.module
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* @file
* Provides Schema mapping for Project Open Data.
*/

require_once('podValidator.php');

/**
* Implements hook_menu().
*/
Expand Down Expand Up @@ -390,7 +393,6 @@ function open_data_schema_pod_accrual_iso_8601() {
* Validates individual datasets.
*/
function open_data_schema_pod_process_validate($url, $clear_cache = FALSE) {
include 'podValidator.php';
if (!$clear_cache && $cache = cache_get('pod_validate_result')) {
$results = $cache->data;
$results['cache_date'] = $cache->created;
Expand Down

0 comments on commit cc92d5e

Please sign in to comment.