aboutsummaryrefslogtreecommitdiff
path: root/mod/file
diff options
context:
space:
mode:
Diffstat (limited to 'mod/file')
-rw-r--r--mod/file/classes/FilePluginFile.php16
-rw-r--r--mod/file/start.php15
2 files changed, 16 insertions, 15 deletions
diff --git a/mod/file/classes/FilePluginFile.php b/mod/file/classes/FilePluginFile.php
new file mode 100644
index 000000000..7397bfa4b
--- /dev/null
+++ b/mod/file/classes/FilePluginFile.php
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * Override the ElggFile
+ */
+class FilePluginFile extends ElggFile {
+ protected function initializeAttributes() {
+ parent::initializeAttributes();
+
+ $this->attributes['subtype'] = "file";
+ }
+
+ public function __construct($guid = null) {
+ parent::__construct($guid);
+ }
+}
diff --git a/mod/file/start.php b/mod/file/start.php
index 64533616c..ff0dcbc48 100644
--- a/mod/file/start.php
+++ b/mod/file/start.php
@@ -5,21 +5,6 @@
* @package ElggFile
*/
-/**
- * Override the ElggFile so that
- */
-class FilePluginFile extends ElggFile {
- protected function initialise_attributes() {
- parent::initialise_attributes();
-
- $this->attributes['subtype'] = "file";
- }
-
- public function __construct($guid = null) {
- parent::__construct($guid);
- }
-}
-
/**
* File plugin initialisation functions.