diff options
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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');
|