diff options
author | Shashi Gowda <connect2shashi@gmail.com> | 2010-06-13 07:27:56 -0400 |
---|---|---|
committer | Shashi Gowda <connect2shashi@gmail.com> | 2010-06-13 07:29:31 -0400 |
commit | 3cf486c7f41ce088824c29c2c7457e5f1631a8f1 (patch) | |
tree | 9a150c123fc3673b4f9e6117153cbe6e0839a70a /plugins/SocialObject/NewSocialObjectAction.php | |
parent | 5e5a7d69e50bc010fb2fe4c5fff621efd53a4d77 (diff) |
Some improvements
Diffstat (limited to 'plugins/SocialObject/NewSocialObjectAction.php')
-rw-r--r-- | plugins/SocialObject/NewSocialObjectAction.php | 14 |
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, |