rejetto forum
Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Mars on March 03, 2008, 12:38:24 AM
-
Rejetto, you can add one option in MENU-DEBUG
'Allow old Macros'
above Enable Macros.log
CODE
object highSpeedChk: TMenuItem
AutoCheck = True
Caption = 'Experimental high speed handling'
Checked = True
end
object macrosOldChk: TMenuItem
AutoCheck = True
Caption = 'Allow old Macros'
end
object macrosLogChk: TMenuItem
AutoCheck = True
Caption = 'Enable macros.log'
end
CODE
macrosLogChk: TMenuItem;
macrosOldchk: TMenuItem;
CODE
function add2diff(s:string):boolean;
begin
result:=FALSE;
if s = '' then exit;
if mainfrm.macrosOldchk.checked then convertNewMacroSyntax(s); //added by mars
diff:=s + ifThen((diff > '') and not isSectionAT(@diff[1]), '[]'+CRLF) + diff;
result:=TRUE;
end; // add2diff
It is by waiting to convert all the templates.
to test this: http://hfs.webhop.org/hfs-build-180-by-mars.zip (http://hfs.webhop.org/hfs-build-180-by-mars.zip)
-
i will just put an autoconverter for the diff tpl as it is now for the main tpl.
transparent to the user.
thanks for reporting.