));
}
-
+
+ /**
+ * does the files exist?
+ */
+ function exists()
+ {
+ return file_exists($this->getStoreName());
+ }
+
+
/**
* deletes all the image instances of it...
*
function beforeDelete($dependants_array, $roo)
{
+ if (!empty($dependants_array)) {
+ return;
+ }
+
$opts = HTML_FlexyFramework::get()->Pman;
$deldir = $opts['storedir']. '/_deleted_images_';
if (!file_exists( $deldir )) {
if (!$this->id) {
return 'about:blank';
}
+ if (!$this->exists()) {
+ return 'about:missing';
+ }
$shorten_name = $this->shorten_name();