예제 #1
0
 function testEditWarning()
 {
     // Test the forum edits
     ocf_edit_warning($this->warn_id, 'something', 1);
     // Test the forum was actually created
     $this->assertTrue('something' == $GLOBALS['FORUM_DB']->query_value('f_warnings', 'w_explanation ', array('id' => $this->warn_id)));
 }
예제 #2
0
 /**
  * Standard aed_module edit actualiser.
  *
  * @param  ID_TEXT		The entry being edited
  */
 function edit_actualisation($id)
 {
     ocf_edit_warning(intval($id), post_param('explanation'), post_param_integer('is_warning', 0));
 }