]> git.mxchange.org Git - core.git/commitdiff
Missing file added
authorRoland Häder <roland@mxchange.org>
Tue, 24 Mar 2009 10:35:13 +0000 (10:35 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 24 Mar 2009 10:35:13 +0000 (10:35 +0000)
.gitattributes
inc/hooks.php [new file with mode: 0644]

index c8d5329730aebcc7e99ddd2310cf6e2401e851d0..ccdfe9fdcb67204d3b7d3781df0edbef59eae6ba 100644 (file)
@@ -501,6 +501,7 @@ inc/database.php -text
 inc/database/.htaccess -text
 inc/database/lib-local.php -text
 inc/file_io.php -text
+inc/hooks.php -text
 inc/includes.php -text
 inc/language.php -text
 inc/language/.htaccess -text
diff --git a/inc/hooks.php b/inc/hooks.php
new file mode 100644 (file)
index 0000000..17c70e1
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Register hooks and other functions/methods
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.org
+ *
+ * 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 3 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, see <http://www.gnu.org/licenses/>.
+ */
+
+// Register auto-load function with the SPL
+// @TODO This makes the core depending on the SPL. But it should be installed anyway.
+spl_autoload_register('ClassLoader::autoLoad');
+
+// [EOF]
+?>