Ejemplo n.º 1
0
 function testMergeauthors()
 {
     // Test the forum edits
     merge_authors($from = 'author1', $to = 'author2');
 }
Ejemplo n.º 2
0
 /**
  * The actualiser to merge two authors.
  *
  * @return tempcode		The UI
  */
 function _mg()
 {
     check_specific_permission('delete_midrange_content');
     $title = get_page_title('MERGE_AUTHORS');
     $from = post_param('mauthor');
     $to = post_param('mauthor2');
     merge_authors($from, $to);
     breadcrumb_set_parents(array(array('_SELF:_SELF:misc', do_lang_tempcode('AUTHOR_MANAGE'))));
     return $this->do_next_manager($title, do_lang_tempcode('SUCCESS'));
 }