04-02-2009, 09:39 PM
|
#1 (permalink)
|
|
Wizard
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
|
I love maintaining legacy code (priceless snippet of ASP code)
At work we have a terrible (massive) ASP CMS we have to manage. No documentation, near no comments and code straight out of basic tutorials. I came though the following piece of code in it (follow bTemplateUpdate).
Code:
Dim bTemplateUpdate
If sNewTemplate <> "" Then
bTemplateUpdate = True
End If
If oReq.Form("oldTemplate") <> sNewTemplate Then
bTemplateUpdate = True
End if
bTemplateUpdate = True
If bTemplateUpdate And (sNewTemplate<>"") Then
(big process)
end if
|
|
|
|