]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Blog/BlogPlugin.php
Merge commit 'refs/merge-requests/25' of https://gitorious.org/social/mainline into...
[quix0rs-gnu-social.git] / plugins / Blog / BlogPlugin.php
index 4ff904db0b4c07735d5c78cc8a85f72db290f297..8d5532b8b17c508c1cce18f1960c20aaf07e7a9c 100644 (file)
@@ -50,6 +50,9 @@ if (!defined('STATUSNET')) {
 
 class BlogPlugin extends MicroAppPlugin
 {
+
+    var $oldSaveNew = true;
+
     /**
      * Database schema setup
      *
@@ -66,15 +69,19 @@ class BlogPlugin extends MicroAppPlugin
 
         return true;
     }
+    
+    public function newFormAction(){
+        return 'newblogentry';
+    }
 
     /**
      * Map URLs to actions
      *
-     * @param Net_URL_Mapper $m path-to-action mapper
+     * @param URLMapper $m path-to-action mapper
      *
      * @return boolean hook value; true means continue processing, false means stop.
      */
-    function onRouterInitialized($m)
+    public function onRouterInitialized(URLMapper $m)
     {
         $m->connect('blog/new',
                     array('action' => 'newblogentry'));