Fix warning Declaration of x should be compatible with Walker
Use of undefined constant directory - assumed 'directory'