mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-24 00:05:00 +00:00
Portable DIRECTORY_SEPARATOR :)
Change-Id: I61d2ddc5367c2ffacd68c12bf9b6037cfc39d487
This commit is contained in:
parent
e004b415d6
commit
8fd450269c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue