Index: trunk/kernel/include/image.php =================================================================== diff -u -r832 -r889 --- trunk/kernel/include/image.php (.../image.php) (revision 832) +++ trunk/kernel/include/image.php (.../image.php) (revision 889) @@ -19,6 +19,21 @@ $this->LoadFromDatabase($id); //$this->SetDebugLevel(0); } + + function DetectChanges($name, $value) + { + global $objSession; + //print_pre($_POST); + + if ($this->Data[$name] != $value) { + //echo "$name Modified tt ".$this->Data[$name]." tt $value
"; + if (!stristr($name, 'Resource') && !stristr($name, 'ImageId')) { + if ($objSession->GetVariable("HasChanges") != 1) { + $objSession->SetVariable("HasChanges", 2); + } + } + } + } function GetFileName($thumb = 0) {