Skip to content

Commit

Permalink
Merge pull request #82 from filbertkm/remoteextpath
Browse files Browse the repository at this point in the history
Fix remoteExtPath for installation in non-standard locations
  • Loading branch information
xchrdw committed Jun 23, 2014
2 parents 32ab53d + a75f765 commit 2fb712f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PropertySuggester.php
Expand Up @@ -39,11 +39,15 @@
$wgHooks['UnitTestsList'][] = 'PropertySuggesterHooks::onUnitTestsList';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'PropertySuggesterHooks::onCreateSchema';

$remoteExtPathParts = explode(
DIRECTORY_SEPARATOR . 'extensions' . DIRECTORY_SEPARATOR, __DIR__, 2
);

$wgResourceModules['ext.PropertySuggester.EntitySelector'] = array(
'scripts' => array( 'modules/ext.PropertySuggester.EntitySelector.js' ),
'dependencies' => array( 'jquery.wikibase.entityselector' ),
'localBasePath' => __DIR__,
'remoteExtPath' => 'PropertySuggester',
'remoteExtPath' => $remoteExtPathParts[1],
);


Expand Down

0 comments on commit 2fb712f

Please sign in to comment.