[Customisation Database Commits] r767 - in /trunk/titania: ariel_convert.php common.php includes/functions_install.php includes/objects/queue.php includes/tools/posting.php install.php

Nathan Guse exreaction at phpbb.com
Tue Mar 16 01:07:47 GMT 2010


Author: exreaction
Date: Tue Mar 16 01:07:47 2010
New Revision: 767

Log:
Should be all stickies for queue discussion and teams access level

Modified:
    trunk/titania/ariel_convert.php
    trunk/titania/common.php
    trunk/titania/includes/functions_install.php
    trunk/titania/includes/objects/queue.php
    trunk/titania/includes/tools/posting.php
    trunk/titania/install.php

Modified: trunk/titania/ariel_convert.php
==============================================================================
*** trunk/titania/ariel_convert.php (original)
--- trunk/titania/ariel_convert.php Tue Mar 16 01:07:47 2010
***************
*** 613,618 ****
--- 613,622 ----
  			'post_text_uid'			=> $post_row['bbcode_uid'],
  			'post_text_options'		=> (($post_row['enable_bbcode']) ? OPTION_FLAG_BBCODE : 0) + (($post_row['enable_smilies']) ? OPTION_FLAG_SMILIES : 0) + (($post_row['enable_magic_url']) ? OPTION_FLAG_LINKS : 0),
  		));
+ 		if ($topic_type == TITANIA_QUEUE_DISCUSSION)
+ 		{
+ 			$post->topic->topic_sticky = true;
+ 		}
  		$post->message_parsed_for_storage = true;
  		$post->submit();
  	}

Modified: trunk/titania/common.php
==============================================================================
*** trunk/titania/common.php (original)
--- trunk/titania/common.php Tue Mar 16 01:07:47 2010
***************
*** 17,23 ****
  }
  
  // Version number (only used for the installer)
! define('TITANIA_VERSION', '0.1.48');
  
  define('PHPBB_USE_BOARD_URL_PATH', true);
  if (!defined('IN_TITANIA_INSTALL'))
--- 17,23 ----
  }
  
  // Version number (only used for the installer)
! define('TITANIA_VERSION', '0.1.49');
  
  define('PHPBB_USE_BOARD_URL_PATH', true);
  if (!defined('IN_TITANIA_INSTALL'))

Modified: trunk/titania/includes/functions_install.php
==============================================================================
*** trunk/titania/includes/functions_install.php (original)
--- trunk/titania/includes/functions_install.php Tue Mar 16 01:07:47 2010
***************
*** 47,52 ****
--- 47,58 ----
  					$sync = new titania_sync;
  					$sync->topics('queue_discussion_category');
  				break;
+ 
+ 				case '0.1.49' :
+ 					$sql = 'UPDATE ' . TITANIA_TOPICS_TABLE . ' SET topic_sticky = 1
+ 						WHERE topic_type = ' . TITANIA_QUEUE_DISCUSSION;
+ 					phpbb::$db->sql_query($sql);
+ 				break;
  			}
  		break;
  

Modified: trunk/titania/includes/objects/queue.php
==============================================================================
*** trunk/titania/includes/objects/queue.php (original)
--- trunk/titania/includes/objects/queue.php Tue Mar 16 01:07:47 2010
***************
*** 120,126 ****
  					'topic_sticky'		=> true,
  				));
  				$post->__set_array(array(
! 					'post_access'		=> TITANIA_ACCESS_TEAMS,
  					'post_subject'		=> sprintf(phpbb::$user->lang['QUEUE_DISCUSSION_TOPIC_TITLE'], $row['contrib_name']),
  					'post_text'			=> phpbb::$user->lang['QUEUE_DISCUSSION_TOPIC_MESSAGE'],
  				));
--- 120,126 ----
  					'topic_sticky'		=> true,
  				));
  				$post->__set_array(array(
! 					'post_access'		=> TITANIA_ACCESS_AUTHORS,
  					'post_subject'		=> sprintf(phpbb::$user->lang['QUEUE_DISCUSSION_TOPIC_TITLE'], $row['contrib_name']),
  					'post_text'			=> phpbb::$user->lang['QUEUE_DISCUSSION_TOPIC_MESSAGE'],
  				));

Modified: trunk/titania/includes/tools/posting.php
==============================================================================
*** trunk/titania/includes/tools/posting.php (original)
--- trunk/titania/includes/tools/posting.php Tue Mar 16 01:07:47 2010
***************
*** 379,384 ****
--- 379,390 ----
  			}
  			else
  			{
+ 				// Force Queue Discussion topics to always be stickies
+ 				if ($post_object->post_type == TITANIA_QUEUE_DISCUSSION)
+ 				{
+ 					$post_object->topic->topic_sticky = true;
+ 				}
+ 
  				$post_object->submit();
  
  				$message_object->submit($post_object->post_access);

Modified: trunk/titania/install.php
==============================================================================
*** trunk/titania/install.php (original)
--- trunk/titania/install.php Tue Mar 16 01:07:47 2010
***************
*** 796,801 ****
--- 796,805 ----
  		),
  	),
  
+ 	'0.1.49' => array(
+ 		'custom' => 'titania_custom',
+ 	),
+ 
  	// IF YOU ADD A NEW VERSION DO NOT FORGET TO INCREMENT THE VERSION NUMBER IN common.php!
  );
  




More information about the customisationdb-commits mailing list