From e938b1de117cfde17a5773fe0c6fc92185c873fe Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Sun, 30 Dec 2012 13:36:40 +0400
Subject: [PATCH] rename plugin main class files

---
 classes/pluginhost.php                                    | 2 +-
 plugins/af_explosm/{af_explosm.php => init.php}           | 0
 plugins/af_gocomics/{af_gocomics.php => init.php}         | 0
 plugins/af_pennyarcade/{af_pennyarcade.php => init.php}   | 0
 plugins/af_redditimgur/{af_redditimgur.php => init.php}   | 0
 plugins/auth_imap/{auth_imap.php => init.php}             | 0
 plugins/auth_internal/{auth_internal.php => init.php}     | 0
 plugins/auth_remote/{auth_remote.php => init.php}         | 0
 plugins/digest/{digest.php => init.php}                   | 0
 plugins/example/{example.php => init.php}                 | 0
 plugins/example_feed/{example_feed.php => init.php}       | 0
 plugins/example_routing/{example_routing.php => init.php} | 0
 plugins/flattr/{flattr.php => init.php}                   | 0
 plugins/googleplus/{googleplus.php => init.php}           | 0
 plugins/identica/{identica.php => init.php}               | 0
 plugins/import_export/{import_export.php => init.php}     | 0
 plugins/instances/{instances.php => init.php}             | 0
 plugins/mail/{mail.php => init.php}                       | 0
 plugins/note/{note.php => init.php}                       | 0
 plugins/owncloud/{owncloud.php => init.php}               | 0
 plugins/pinterest/{pinterest.php => init.php}             | 0
 plugins/pocket/{pocket.php => init.php}                   | 0
 plugins/share/{share.php => init.php}                     | 0
 plugins/swap_jk/{swap_jk.php => init.php}                 | 0
 plugins/updater/{updater.php => init.php}                 | 0
 25 files changed, 1 insertion(+), 1 deletion(-)
 rename plugins/af_explosm/{af_explosm.php => init.php} (100%)
 rename plugins/af_gocomics/{af_gocomics.php => init.php} (100%)
 rename plugins/af_pennyarcade/{af_pennyarcade.php => init.php} (100%)
 rename plugins/af_redditimgur/{af_redditimgur.php => init.php} (100%)
 rename plugins/auth_imap/{auth_imap.php => init.php} (100%)
 rename plugins/auth_internal/{auth_internal.php => init.php} (100%)
 rename plugins/auth_remote/{auth_remote.php => init.php} (100%)
 rename plugins/digest/{digest.php => init.php} (100%)
 rename plugins/example/{example.php => init.php} (100%)
 rename plugins/example_feed/{example_feed.php => init.php} (100%)
 rename plugins/example_routing/{example_routing.php => init.php} (100%)
 rename plugins/flattr/{flattr.php => init.php} (100%)
 rename plugins/googleplus/{googleplus.php => init.php} (100%)
 rename plugins/identica/{identica.php => init.php} (100%)
 rename plugins/import_export/{import_export.php => init.php} (100%)
 rename plugins/instances/{instances.php => init.php} (100%)
 rename plugins/mail/{mail.php => init.php} (100%)
 rename plugins/note/{note.php => init.php} (100%)
 rename plugins/owncloud/{owncloud.php => init.php} (100%)
 rename plugins/pinterest/{pinterest.php => init.php} (100%)
 rename plugins/pocket/{pocket.php => init.php} (100%)
 rename plugins/share/{share.php => init.php} (100%)
 rename plugins/swap_jk/{swap_jk.php => init.php} (100%)
 rename plugins/updater/{updater.php => init.php} (100%)

diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index b30409169..a1ad7ef07 100644
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -90,7 +90,7 @@ class PluginHost {
 		foreach ($plugins as $class) {
 			$class = trim($class);
 			$class_file = strtolower(basename($class));
-			$file = dirname(__FILE__)."/../plugins/$class_file/$class_file.php";
+			$file = dirname(__FILE__)."/../plugins/$class_file/init.php";
 
 			if (!isset($this->plugins[$class])) {
 				if (file_exists($file)) require_once $file;
diff --git a/plugins/af_explosm/af_explosm.php b/plugins/af_explosm/init.php
similarity index 100%
rename from plugins/af_explosm/af_explosm.php
rename to plugins/af_explosm/init.php
diff --git a/plugins/af_gocomics/af_gocomics.php b/plugins/af_gocomics/init.php
similarity index 100%
rename from plugins/af_gocomics/af_gocomics.php
rename to plugins/af_gocomics/init.php
diff --git a/plugins/af_pennyarcade/af_pennyarcade.php b/plugins/af_pennyarcade/init.php
similarity index 100%
rename from plugins/af_pennyarcade/af_pennyarcade.php
rename to plugins/af_pennyarcade/init.php
diff --git a/plugins/af_redditimgur/af_redditimgur.php b/plugins/af_redditimgur/init.php
similarity index 100%
rename from plugins/af_redditimgur/af_redditimgur.php
rename to plugins/af_redditimgur/init.php
diff --git a/plugins/auth_imap/auth_imap.php b/plugins/auth_imap/init.php
similarity index 100%
rename from plugins/auth_imap/auth_imap.php
rename to plugins/auth_imap/init.php
diff --git a/plugins/auth_internal/auth_internal.php b/plugins/auth_internal/init.php
similarity index 100%
rename from plugins/auth_internal/auth_internal.php
rename to plugins/auth_internal/init.php
diff --git a/plugins/auth_remote/auth_remote.php b/plugins/auth_remote/init.php
similarity index 100%
rename from plugins/auth_remote/auth_remote.php
rename to plugins/auth_remote/init.php
diff --git a/plugins/digest/digest.php b/plugins/digest/init.php
similarity index 100%
rename from plugins/digest/digest.php
rename to plugins/digest/init.php
diff --git a/plugins/example/example.php b/plugins/example/init.php
similarity index 100%
rename from plugins/example/example.php
rename to plugins/example/init.php
diff --git a/plugins/example_feed/example_feed.php b/plugins/example_feed/init.php
similarity index 100%
rename from plugins/example_feed/example_feed.php
rename to plugins/example_feed/init.php
diff --git a/plugins/example_routing/example_routing.php b/plugins/example_routing/init.php
similarity index 100%
rename from plugins/example_routing/example_routing.php
rename to plugins/example_routing/init.php
diff --git a/plugins/flattr/flattr.php b/plugins/flattr/init.php
similarity index 100%
rename from plugins/flattr/flattr.php
rename to plugins/flattr/init.php
diff --git a/plugins/googleplus/googleplus.php b/plugins/googleplus/init.php
similarity index 100%
rename from plugins/googleplus/googleplus.php
rename to plugins/googleplus/init.php
diff --git a/plugins/identica/identica.php b/plugins/identica/init.php
similarity index 100%
rename from plugins/identica/identica.php
rename to plugins/identica/init.php
diff --git a/plugins/import_export/import_export.php b/plugins/import_export/init.php
similarity index 100%
rename from plugins/import_export/import_export.php
rename to plugins/import_export/init.php
diff --git a/plugins/instances/instances.php b/plugins/instances/init.php
similarity index 100%
rename from plugins/instances/instances.php
rename to plugins/instances/init.php
diff --git a/plugins/mail/mail.php b/plugins/mail/init.php
similarity index 100%
rename from plugins/mail/mail.php
rename to plugins/mail/init.php
diff --git a/plugins/note/note.php b/plugins/note/init.php
similarity index 100%
rename from plugins/note/note.php
rename to plugins/note/init.php
diff --git a/plugins/owncloud/owncloud.php b/plugins/owncloud/init.php
similarity index 100%
rename from plugins/owncloud/owncloud.php
rename to plugins/owncloud/init.php
diff --git a/plugins/pinterest/pinterest.php b/plugins/pinterest/init.php
similarity index 100%
rename from plugins/pinterest/pinterest.php
rename to plugins/pinterest/init.php
diff --git a/plugins/pocket/pocket.php b/plugins/pocket/init.php
similarity index 100%
rename from plugins/pocket/pocket.php
rename to plugins/pocket/init.php
diff --git a/plugins/share/share.php b/plugins/share/init.php
similarity index 100%
rename from plugins/share/share.php
rename to plugins/share/init.php
diff --git a/plugins/swap_jk/swap_jk.php b/plugins/swap_jk/init.php
similarity index 100%
rename from plugins/swap_jk/swap_jk.php
rename to plugins/swap_jk/init.php
diff --git a/plugins/updater/updater.php b/plugins/updater/init.php
similarity index 100%
rename from plugins/updater/updater.php
rename to plugins/updater/init.php
-- 
GitLab