Пример #1
0
 function testEditForum_category()
 {
     // Test the forum edits
     ocf_edit_category($this->forum_cat_id, 'New_title', 'somthing', 1);
     // Test the forum was actually created
     $this->assertTrue('New_title' == $GLOBALS['FORUM_DB']->query_value('f_categories', 'c_title', array('id' => $this->forum_cat_id)));
 }
Пример #2
0
 /**
  * Standard aed_module edit actualiser.
  *
  * @param  ID_TEXT		The entry being edited
  */
 function edit_actualisation($id)
 {
     ocf_edit_category(intval($id), post_param('title'), post_param('description', STRING_MAGIC_NULL), post_param_integer('expanded_by_default', fractional_edit() ? INTEGER_MAGIC_NULL : 0));
     $this->extra_donext_whatever = array(array('add_one', array('admin_ocf_forums', array('type' => 'ad', 'category_id' => $id), get_module_zone('admin_ocf_forums'))), array('edit_one', array('admin_ocf_forums', array('type' => 'ed'), get_module_zone('admin_ocf_forums'))));
 }