X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLContextType.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLContextType.java index aea31e5..13afed8 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLContextType.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/php/HTMLContextType.java @@ -23,6 +23,7 @@ public class HTMLContextType extends CompilationUnitContextType { addVariable(new GlobalVariables.Cursor()); addVariable(new GlobalVariables.Dollar()); addVariable(new GlobalVariables.Date()); + addVariable(new GlobalVariables.Year()); addVariable(new GlobalVariables.Time()); addVariable(new GlobalVariables.User()); @@ -40,7 +41,7 @@ public class HTMLContextType extends CompilationUnitContextType { * @see ContextType#createContext() */ public TemplateContext createContext() { - return new HTMLUnitContext(this, fDocument, fPosition); //, fCompilationUnit); + return new HTMLUnitContext(this, fDocument, fOffset); //, fCompilationUnit); } }