https://bugzilla.wikimedia.org/show_bug.cgi?id=46635
Web browser: ---
Bug ID: 46635
Summary: Scribunto_LuaLibraryBase registerInterface() produces
internal error on Windows platform
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: Windows XP
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Following up on [1]
[1]
http://www.mediawiki.org/wiki/Extension_talk:Scribunto#Register_external_library_using_registerInterface.28.29_25635
## Report
Using the following registration method
$this->getEngine()->registerInterface( dirname( __FILE__ ) . '/' .
'smw.library.lua', $lib, array() );
will cause an internal error
Lua file does not exist:
C:\xampp\htdocs\mw\extensions\Scribunto\engines\LuaCommon/lualib/C:\xampp\htdocs\mw\extensions\SemanticMediaWiki\includes\lua/smw.library.lua
Verification
## Environment
MediaWiki 1.21alpha (37875db), Scribunto (a852755)
## Anomie responded
The problem is the Windows directory paths with drive letter; since c98cc645
Scribunto has supported absolute Unix-style paths in registerInterface(), and
8fd45026 tried to extend this to Windows but failed to consider drive letters.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l