[Customisation Database Commits] r1049 - /trunk/titania/ariel_convert.php

Nathan Guse exreaction at phpbb.com
Sat Apr 10 20:16:29 BST 2010


Author: exreaction
Date: Sat Apr 10 20:16:29 2010
New Revision: 1049

Log:
Use the robots

Modified:
    trunk/titania/ariel_convert.php

Modified: trunk/titania/ariel_convert.php
==============================================================================
*** trunk/titania/ariel_convert.php (original)
--- trunk/titania/ariel_convert.php Sat Apr 10 20:16:29 2010
***************
*** 365,371 ****
  			$filename = realpath(TITANIA_ROOT . phpbb::$config['site_upload_dir'] . '/' . $row['revision_filename_internal']);
  			if (!file_exists($filename))
  			{
! 				echo 'Could Not Find File - ' . TITANIA_ROOT . phpbb::$config['site_upload_dir'] . '/' . $row['revision_filename_internal'] . '<br />';
  				continue;
  			}
  
--- 365,371 ----
  			$filename = realpath(TITANIA_ROOT . phpbb::$config['site_upload_dir'] . '/' . $row['revision_filename_internal']);
  			if (!file_exists($filename))
  			{
! 				//echo 'Could Not Find File - ' . TITANIA_ROOT . phpbb::$config['site_upload_dir'] . '/' . $row['revision_filename_internal'] . '<br />';
  				continue;
  			}
  
***************
*** 526,531 ****
--- 526,532 ----
  			$topic->parent_id = $row['contrib_id'];
  			$topic->topic_category = $row['contrib_type'];
  			$topic->phpbb_topic_id = $row['topic_id'];
+ 			$topic->topic_category = $row['contrib_type'];
  			$topic->topic_url = titania_types::$types[$row['contrib_type']]->url . '/' . $row['contrib_name_clean'] . '/support/';
  			titania_move_topic($row['topic_id'], $topic, TITANIA_QUEUE_DISCUSSION);
  			unset($topic);
***************
*** 594,599 ****
--- 595,601 ----
  			$topic->parent_id = $row['queue_id'];
  			$topic->topic_url = 'manage/queue/q_' . $row['queue_id'];
  			$topic->phpbb_topic_id = $row['topic_id'];
+ 			$topic->topic_category = $row['contrib_type'];
  			titania_move_topic($row['topic_id'], $topic, TITANIA_QUEUE, $row['contrib_name'], $row['revision_version']);
  			$queue_topic_id = $topic->topic_id;
  			unset($topic);
***************
*** 801,806 ****
--- 803,819 ----
  			'post_subject'			=> phpbb::$user->lang['VALIDATION'] . ' - ' . $contrib_name . ' - ' . $revision_version,
  			'post_text'				=> 'Converted from Ariel',
  		));
+ 		switch ($post->topic->topic_category)
+ 		{
+ 			case TITANIA_TYPE_MOD :
+ 				$post->post_user_id = titania::$config->forum_mod_robot;
+ 			break;
+ 
+ 			case TITANIA_TYPE_STYLE :
+ 				$post->post_user_id = titania::$config->forum_style_robot;
+ 			break;
+ 		}
+ 
  		$post->submit();
  	}
  }




More information about the customisationdb-commits mailing list