Jack Phoenix has uploaded a new change for review.
https://gerrit.wikimedia.org/r/168008
Change subject: Create new subfolders for .sql files and API modules
......................................................................
Create new subfolders for .sql files and API modules
Change-Id: Ib088604efb6c6ae57cc0c7028c0bcdb405de40d6
---
M MediaWikiChat.hooks.php
M MediaWikiChat.php
R api/GetNew.api.php
R api/Kick.api.php
R api/Send.api.php
R api/SendPM.api.php
R sql/chat.sql
R sql/chat_users.sql
R sql/cu_away.sql
R sql/cu_away_new.sql
10 files changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MediaWikiChat
refs/changes/08/168008/1
diff --git a/MediaWikiChat.hooks.php b/MediaWikiChat.hooks.php
index 7e1cf14..629cef3 100644
--- a/MediaWikiChat.hooks.php
+++ b/MediaWikiChat.hooks.php
@@ -55,7 +55,7 @@
* Hook for update.php
*/
public static function onLoadExtensionSchemaUpdates( DatabaseUpdater
$updater ) {
- $dir = dirname( __FILE__ ) . '/';
+ $dir = dirname( __FILE__ ) . '/sql/';
$updater->addExtensionTable( 'chat', $dir . 'chat.sql', true );
$updater->addExtensionTable( 'chat_users', $dir .
'chat_users.sql', true );
diff --git a/MediaWikiChat.php b/MediaWikiChat.php
index 7af914a..93d2166 100644
--- a/MediaWikiChat.php
+++ b/MediaWikiChat.php
@@ -16,7 +16,7 @@
$wgExtensionCredits['specialpage'][] = array(
'path' => __FILE__,
'name' => 'MediaWikiChat',
- 'version' => '2.12.5',
+ 'version' => '2.12.6',
'author' => 'Adam Carter/UltrasonicNXT',
'url' => 'https://www.mediawiki.org/wiki/Extension:MediaWikiChat',
'descriptionmsg' => 'chat-desc',
@@ -75,11 +75,11 @@
$wgHooks['SkinBuildSidebar'][] = 'MediaWikiChatHooks::fnNewSidebarItem';
$wgHooks['GetPreferences'][] = 'MediaWikiChatHooks::wfPrefHook';
-//API
-$wgAutoloadClasses['ChatGetNewAPI'] = $dir . 'GetNew.api.php';
-$wgAutoloadClasses['ChatSendAPI'] = $dir . 'Send.api.php';
-$wgAutoloadClasses['ChatSendPMAPI'] = $dir . 'SendPM.api.php';
-$wgAutoloadClasses['ChatKickAPI'] = $dir . 'Kick.api.php';
+// API
+$wgAutoloadClasses['ChatGetNewAPI'] = $dir . 'api/GetNew.api.php';
+$wgAutoloadClasses['ChatSendAPI'] = $dir . 'api/Send.api.php';
+$wgAutoloadClasses['ChatSendPMAPI'] = $dir . 'api/SendPM.api.php';
+$wgAutoloadClasses['ChatKickAPI'] = $dir . 'api/Kick.api.php';
$wgAPIModules['chatgetnew'] = 'ChatGetNewAPI';
$wgAPIModules['chatsend'] = 'ChatSendAPI';
$wgAPIModules['chatsendpm'] = 'ChatSendPMAPI';
diff --git a/GetNew.api.php b/api/GetNew.api.php
similarity index 100%
rename from GetNew.api.php
rename to api/GetNew.api.php
diff --git a/Kick.api.php b/api/Kick.api.php
similarity index 100%
rename from Kick.api.php
rename to api/Kick.api.php
diff --git a/Send.api.php b/api/Send.api.php
similarity index 100%
rename from Send.api.php
rename to api/Send.api.php
diff --git a/SendPM.api.php b/api/SendPM.api.php
similarity index 100%
rename from SendPM.api.php
rename to api/SendPM.api.php
diff --git a/chat.sql b/sql/chat.sql
similarity index 100%
rename from chat.sql
rename to sql/chat.sql
diff --git a/chat_users.sql b/sql/chat_users.sql
similarity index 100%
rename from chat_users.sql
rename to sql/chat_users.sql
diff --git a/cu_away.sql b/sql/cu_away.sql
similarity index 100%
rename from cu_away.sql
rename to sql/cu_away.sql
diff --git a/cu_away_new.sql b/sql/cu_away_new.sql
similarity index 100%
rename from cu_away_new.sql
rename to sql/cu_away_new.sql
--
To view, visit https://gerrit.wikimedia.org/r/168008
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib088604efb6c6ae57cc0c7028c0bcdb405de40d6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MediaWikiChat
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits