Pman.php
[Pman.Base] / Pman.php
index 94ce7f2..cac590a 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -465,8 +465,8 @@ class Pman extends HTML_FlexyFramework_Page
             header('Content-type: text/html');
             echo "<HTML><HEAD></HEAD><BODY>";
             // encode html characters so they can be read..
-            $str = str_replace(array('<','>'), array('\u003c','\u003e'), $str);
-            echo  $json->encodeUnsafe(array('success'=> true, 'data' => $str));
+            echo  str_replace(array('<','>'), array('\u003c','\u003e'),
+                        $json->encodeUnsafe(array('success'=> true, 'data' => $str)));
             echo "</BODY></HTML>";
             exit;
         }
@@ -670,7 +670,8 @@ class Pman extends HTML_FlexyFramework_Page
      * 
      * @param {String} action  - group/name of event
      * @param {DataObject|false} obj - dataobject action occured on.
-     * @param {String} any remarks 
+     * @param {String} any remarks
+     * @return {Number} id of event created.
      */
     
     function addEvent($act, $obj = false, $remarks = '')