sync
authorAlan Knowles <alan@roojs.com>
Tue, 18 Apr 2017 09:11:25 +0000 (17:11 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Apr 2017 09:11:25 +0000 (17:11 +0800)
DataObjects/Events.php
Images.php

index 87c3abc..229c2ba 100644 (file)
@@ -494,7 +494,11 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
         //print_r($this);
         $file = $logdir.  date('/Y/m/d/'). $this->id . ".json";
         if (!file_exists(dirname($file))) {
-            mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
+            
+            @mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions..
+            if (!file_exists(dirname($file))) {
+                die("could not create $file - permissons are not correct"); // fatal, otherwise we loop!?
+            }
             
         }
         
index 1aa5f26..9976346 100644 (file)
@@ -306,12 +306,10 @@ class Pman_Core_Images extends Pman
         require_once $ff->project . '.php';
         
         $project = str_replace('/', '_', $project);
-         
-        $pr_obj = new $project;
+     
         
-        var_dump($pr_obj->Pman_Core_Images_Size);
-        if(isset($pr_obj->Pman_Core_Images_Size)){
-            $sizes = $pr_obj->Pman_Core_Images_Size;
+        if(isset($project::$Pman_Core_Images_Size)){
+            $sizes = $project::$Pman_Core_Images_Size;
             
             
         }