diff --git a/include/ajax.thread.php b/include/ajax.thread.php index 33160073030b41c4a2706cc39947b9f7e6b5c932..4a8b72016d69ce2ff4565d5026134b380f6e0649 100644 --- a/include/ajax.thread.php +++ b/include/ajax.thread.php @@ -120,7 +120,13 @@ class ThreadAjaxAPI extends AjaxController { $thread->getObject()->postThreadEntry('N', array( 'title' => __('New Collaborator Added'), - 'note' => $note)); + 'note' => $note + ), + array( + 'poster' => $thisstaff, + 'alert' => false + ) + ); $info = array('msg' => sprintf(__('%s added as a collaborator'), Format::htmlchars($c->getName()))); return self::_collaborators($thread, $info); diff --git a/include/class.export.php b/include/class.export.php index 447435b41e8cf7d99a979b3702c966e0dc9f32d8..ed9cee15a9ee7729ee502b3f687c298677099784 100644 --- a/include/class.export.php +++ b/include/class.export.php @@ -110,6 +110,10 @@ class Export { return false; } + static function saveTasks(sql, $filename, $how='csv') { + return false; + } + static function saveUsers($sql, $filename, $how='csv') { $exclude = array('name', 'email'); diff --git a/include/class.task.php b/include/class.task.php index 5f2f761baa25c8339cd503edfcd60712df1df28c..dd7fadcbd25f560b55904ea994f1862f59273919 100644 --- a/include/class.task.php +++ b/include/class.task.php @@ -288,12 +288,14 @@ class Task extends TaskModel implements Threadable { return $thread; } - function postThreadEntry($type, $vars) { + function postThreadEntry($type, $vars, $options=array()) { $errors = array(); + $poster = isset($options['poster']) ? $options['poster'] : null; + $alert = isset($options['alert']) ? $options['alert'] : true; switch ($type) { case 'N': default: - return $this->postNote($vars, $errors); + return $this->postNote($vars, $errors, $poster, $alert); } } diff --git a/include/class.thread.php b/include/class.thread.php index 3268c5cc8c31d8cfa7a95cd0b6701c003c404ef7..75d5a14a396bf1830b0708f89f6a6d0f7caeb72d 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -1983,6 +1983,6 @@ abstract class ThreadEntryAction { interface Threadable { function getThreadId(); function getThread(); - function postThreadEntry($type, $vars); + function postThreadEntry($type, $vars, $options=array()); } ?>