diff options
author | Ian Denhardt <ian@zenhack.net> | 2010-08-05 13:11:34 -0400 |
---|---|---|
committer | Ian Denhardt <ian@zenhack.net> | 2010-08-05 13:11:34 -0400 |
commit | 43454eba363997d44815a90264ca072f1d014f21 (patch) | |
tree | ca2d01993a7fd89f898424ed729cc957fb32fd2f /plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | |
parent | 16ad70e16f1c4a97e8c5fd4566e87760f67578ec (diff) |
got uploads sortof working - database portion doesn't work though.
Diffstat (limited to 'plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php')
-rw-r--r-- | plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php index d93bb8cca..f7cb6f398 100644 --- a/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php +++ b/plugins/GNUsocialPhotos/GNUsocialPhotosPlugin.php @@ -42,9 +42,12 @@ class GNUsocialPhotosPlugin extends Plugin switch ($cls) { case 'PhotosAction': + include_once $dir . '/lib/photolib.php'; include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php'; return false; case 'PhotouploadAction': + include_once $dir . '/lib/photolib.php'; + include_once $dir . '/classes/gnusocialphoto.php'; include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php'; return false; default: @@ -57,7 +60,7 @@ class GNUsocialPhotosPlugin extends Plugin function onCheckSchema() { $schema = Schema::get(); - $schema->ensureTable('GNUsocialPhotos', + $schema->ensureTable('GNUsocialPhoto', array(new ColumnDef('object_id', 'integer', null, false, 'PRI', true, null, null, true), new ColumnDef('path', 'varchar(150)', null, false), new ColumnDef('thumb_path', 'varchar(156)', null, false), // 156 = 150 + strlen('thumb.') |