/**
  * create task to move comment
  *
  * @access public
  * @static
  *
  * @param $oCommentTitle Title
  * @param $oNewTitle Title
  */
 private static function addMoveTask($oCommentTitle, &$oNewTitle, $taskParams)
 {
     wfProfileIn(__METHOD__);
     if (!is_object($oCommentTitle)) {
         wfProfileOut(__METHOD__);
         return false;
     }
     $parts = self::explode($oCommentTitle->getDBkey());
     $commentTitleText = implode('/', $parts['partsOriginal']);
     $newCommentTitle = Title::newFromText(sprintf('%s/%s', $oNewTitle->getText(), $commentTitleText), MWNamespace::getTalk($oNewTitle->getNamespace()));
     $taskParams['page'] = $oCommentTitle->getFullText();
     $taskParams['newpage'] = $newCommentTitle->getFullText();
     $thisTask = new MultiMoveTask($taskParams);
     $submit_id = $thisTask->submitForm();
     Wikia::log(__METHOD__, 'deletecomment', "Added move task ({$submit_id}) for {$taskParams['page']} page");
     wfProfileOut(__METHOD__);
     return true;
 }
$wgMaxShellTime = 0;
$wgMaxShellFileSize = 0;

$add = ( isset($options['add']) ) ;
$TASK_ID = ( isset($options['TASK_ID']) ) ? $options['TASK_ID'] : 0;
if ( $add ) {
	$params = array(
		'page' => 'Ad_free_wikis_old',
		'newpage' => 'Ad_New_free_wikis_old',
		'user' => 'Moli.wikia',
		'redirect' => 1,
		'watch' => 1,
		'reason' => 'test moved 2',
		'selwikia' => 177
	);
	$thisTask = new MultiMoveTask( $params );
	$submit_id = $thisTask->submitForm();	
} elseif ( $TASK_ID ) {
	global $wgExternalSharedDB;
	$dbr = wfGetDB( DB_MASTER, array(), $wgExternalSharedDB );
	$aCondition = array("task_id" => $TASK_ID);
	$oTask = $dbr->selectRow( "wikia_tasks", "*", $aCondition, __METHOD__, array( "ORDER BY" => "task_id") );

	$Maintenance = new MultiMoveTask();
	$Maintenance->execute($oTask);
} else {
	// do nothing 
	echo "nothing to do \n";
}