aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-06-21 22:42:39 +0000
committerCash Costello <cash.costello@gmail.com>2009-06-21 22:42:39 +0000
commit6ce057f5162e18cd5190717145a13e7c29fe9da7 (patch)
tree0ce23ee020d366bd27892b0055fe7dc333520dc7 /start.php
parent8a76d53f35eabe1b33f012e91fd745c1e0653203 (diff)
downloadelgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.gz
elgg-6ce057f5162e18cd5190717145a13e7c29fe9da7.tar.bz2
added in skeleton for image and album classes
Diffstat (limited to 'start.php')
-rw-r--r--start.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/start.php b/start.php
index 24423dafd..e2a87a8e8 100644
--- a/start.php
+++ b/start.php
@@ -10,7 +10,8 @@
// include core libraries
include dirname(__FILE__) . "/lib/tidypics.php";
-
+ include dirname(__FILE__) . "/lib/image.php";
+ include dirname(__FILE__) . "/lib/album.php";
/**
* tidypics plugin initialisation functions.
@@ -44,6 +45,10 @@
register_entity_url_handler('tidypics_image_url', 'object', 'image');
register_entity_url_handler('tidypics_album_url', 'object', 'album');
+ // add the class files for image and album
+ add_subtype("object", "image", "TidypicsImage");
+ add_subtype("object", "album", "TidypicsAlbum");
+
// Register entity type
register_entity_type('object','image');
register_entity_type('object','album');