From fab3e3166b9e75c508fb2491eed24a541f23221c Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 29 Dec 2010 14:10:57 +0000 Subject: moved the file class into a class file git-svn-id: http://code.elgg.org/elgg/trunk@7742 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/file/classes/FilePluginFile.php | 16 ++++++++++++++++ mod/file/start.php | 15 --------------- 2 files changed, 16 insertions(+), 15 deletions(-) create mode 100644 mod/file/classes/FilePluginFile.php (limited to 'mod/file') 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 @@ +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. -- cgit v1.2.3