aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
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');