Move EchoHooks into includes/

Change-Id: I6fe78ca2763f1d449198d9f4e9a0c4d9b8e081f7
This commit is contained in:
Kunal Mehta 2018-04-09 00:19:34 -07:00
parent 28f6be7a31
commit e33b42882d
2 changed files with 4 additions and 4 deletions

View file

@ -954,7 +954,7 @@
"EchoForeignNotifications": "includes/ForeignNotifications.php",
"EchoForeignPresentationModel": "includes/formatters/EchoForeignPresentationModel.php",
"EchoForeignWikiRequest": "includes/ForeignWikiRequest.php",
"EchoHooks": "Hooks.php",
"EchoHooks": "includes/EchoHooks.php",
"EchoHtmlDigestEmailFormatter": "includes/formatters/EchoHtmlDigestEmailFormatter.php",
"EchoHtmlEmailFormatter": "includes/formatters/EchoHtmlEmailFormatter.php",
"EchoIcon": "includes/formatters/EchoIcon.php",

View file

@ -92,7 +92,7 @@ class EchoHooks {
global $wgResourceModules;
$testModuleBoilerplate = [
'localBasePath' => __DIR__,
'localBasePath' => dirname( __DIR__ ),
'remoteExtPath' => 'Echo',
];
@ -146,7 +146,7 @@ class EchoHooks {
'dependencies' => [
'oojs'
],
'localBasePath' => __DIR__ . '/modules',
'localBasePath' => dirname( __DIR__ ) . '/modules',
'remoteExtPath' => 'Echo/modules',
'targets' => [ 'desktop', 'mobile' ],
];
@ -191,7 +191,7 @@ class EchoHooks {
// DatabaseUpdater does not support other databases, so skip
return;
}
$dir = __DIR__;
$dir = dirname( __DIR__ );
$baseSQLFile = "$dir/echo.sql";
$updater->addExtensionTable( 'echo_event', $baseSQLFile );
$updater->addExtensionTable( 'echo_email_batch', "$dir/db_patches/echo_email_batch.sql" );