summaryrefslogtreecommitdiff
path: root/plugins/SocialObject/NewSocialObjectAction.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SocialObject/NewSocialObjectAction.php')
-rw-r--r--plugins/SocialObject/NewSocialObjectAction.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/SocialObject/NewSocialObjectAction.php b/plugins/SocialObject/NewSocialObjectAction.php
index dd58cacbf..79522b3f4 100644
--- a/plugins/SocialObject/NewSocialObjectAction.php
+++ b/plugins/SocialObject/NewSocialObjectAction.php
@@ -35,6 +35,8 @@ if (!defined('STATUSNET')) {
exit(1);
}
+require_once INSTALLDIR . '/actions/newnotice.php';
+
class NewSocialObjectAction extends NewnoticeAction
{
private $slug=null;
@@ -168,14 +170,10 @@ class NewSocialObjectAction extends NewnoticeAction
{
}
- function save()
- {
- # save your custom data, video, event or whatever.
- }
-
- function saveNew()
+ function saveNew($notice)
{
- # save new social-object to its table.
+ $cls = $this->dbclass;
+ $cls::saveNew($notice, $this);
}
function showPage()
@@ -199,7 +197,7 @@ class NewSocialObjectAction extends NewnoticeAction
function showNoticeForm()
{
- $this->showSocialObjectForm();
+ $this->showSocialObjectForm(); # instead.
}
# when user choses to post a social object,