removed unnecessary variable initialization
fixed possible condition where edit pages may run code reserved for Articles, which may affect other extensions; also removed unnecessary variable initialization in timegate.php