DataObjects/Events.php
authorEdward <edward@roojs.com>
Thu, 8 May 2014 10:10:33 +0000 (18:10 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 10:10:33 +0000 (18:10 +0800)
DataObjects/Events.php

index 60a7906..4774a21 100644 (file)
@@ -477,10 +477,10 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         if(!$file){
             return 'No record?!';
         }
-        print_r($file);exit;
-        $source = json_decode($json);
         
-        return 'HERE IS THE RESOURCE';
+        $source = json_decode(file_get_contents($file));
+        
+        return $source;
     }
     
     function retrieveEventLog()