Portable DIRECTORY_SEPARATOR :)

Change-Id: I61d2ddc5367c2ffacd68c12bf9b6037cfc39d487
This commit is contained in:
Jens Ohlig 2013-03-14 15:09:11 +01:00
parent e004b415d6
commit 8fd450269c

View file

@ -135,7 +135,7 @@ abstract class Scribunto_LuaEngine extends ScribuntoEngineBase {
* @return string
*/
protected function normalizeModuleFileName( $fileName ) {
return $fileName[0] !== '/' ? "{$this->getLuaLibDir()}/{$fileName}" : $fileName;
return $fileName[0] !== DIRECTORY_SEPARATOR ? "{$this->getLuaLibDir()}/{$fileName}" : $fileName;
}
/**