Index: trunk/kernel/include/theme.php =================================================================== diff -u -r875 -r889 --- trunk/kernel/include/theme.php (.../theme.php) (revision 875) +++ trunk/kernel/include/theme.php (.../theme.php) (revision 889) @@ -18,7 +18,21 @@ $this->Contents = ''; if($id) $this->LoadFromDatabase($id); } + + function DetectChanges($name, $value) + { + global $objSession; + if ($this->Data[$name] != $value) { + //echo "$name Modified tt ".$this->Data[$name]." tt $value
"; + if (!stristr($name, 'File') && !stristr($name, 'Theme')) { + if ($objSession->GetVariable("HasChanges") != 1) { + $objSession->SetVariable("HasChanges", 2); + } + } + } + } + function ThemeRoot() { if( !$this->Root )