summaryrefslogtreecommitdiff
path: root/modules_v3/GEDFact_assistant/module.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-08-04 19:03:17 +0000
committerfisharebest <fisharebest@gmail.com>2011-08-04 19:03:17 +0000
commit3a66749533ae4ec372c95f7b0a6363efa4f5d294 (patch)
tree48931d265ee51c08f56820a767237975b00ebc3a /modules_v3/GEDFact_assistant/module.php
parentd83d060a1ac10dc72134c3d4804e89b04cc68ad6 (diff)
downloadwebtrees-3a66749533ae4ec372c95f7b0a6363efa4f5d294.tar.gz
webtrees-3a66749533ae4ec372c95f7b0a6363efa4f5d294.tar.bz2
webtrees-3a66749533ae4ec372c95f7b0a6363efa4f5d294.zip
#821050 - Error calling page after update to 1.2.2
Diffstat (limited to 'modules_v3/GEDFact_assistant/module.php')
-rw-r--r--modules_v3/GEDFact_assistant/module.php57
1 files changed, 57 insertions, 0 deletions
diff --git a/modules_v3/GEDFact_assistant/module.php b/modules_v3/GEDFact_assistant/module.php
new file mode 100644
index 0000000000..4612a1f1c6
--- /dev/null
+++ b/modules_v3/GEDFact_assistant/module.php
@@ -0,0 +1,57 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2011 webtrees development team.
+//
+// Derived from PhpGedView
+// Copyright (C) 2010 John Finlay
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// $Id$
+
+if (!defined('WT_WEBTREES')) {
+ header('HTTP/1.0 403 Forbidden');
+ exit;
+}
+
+class GEDFact_assistant_WT_Module extends WT_Module {
+ // Extend WT_Module
+ public function getTitle() {
+ return /* I18N: Name of a module */ WT_I18N::translate('Census assistant');
+ }
+
+ // Extend WT_Module
+ public function getDescription() {
+ return /* I18N: Description of the "Census assistant" module */ WT_I18N::translate('An alternative way to enter census transcripts and link them to individuals.');
+ }
+
+ // Extend WT_Module
+ public function modAction($mod_action) {
+ switch($mod_action) {
+ case '_CENS/census_3_find':
+ // TODO: this file should be a method in this class
+ require WT_ROOT.WT_MODULES_DIR.$this->getName().'/'.$mod_action.'.php';
+ break;
+ case '_MEDIA/media_3_find':
+ // TODO: this file should be a method in this class
+ require WT_ROOT.WT_MODULES_DIR.$this->getName().'/'.$mod_action.'.php';
+ break;
+ default:
+ header('HTTP/1.0 404 Not Found');
+ }
+ }
+}