[Customisation Database Commits] r256 - in /trunk/titania: authors/contributions.php includes/functions_display.php index.php

Nathan Guse exreaction at phpbb.com
Thu Jun 25 21:14:34 UTC 2009


Author: exreaction
Date: Thu Jun 25 21:14:34 2009
New Revision: 256

Log:
Rename the display_ functions to titania_display_ to prevent any conflicts and be a bit more standard

Modified:
    trunk/titania/authors/contributions.php
    trunk/titania/includes/functions_display.php
    trunk/titania/index.php

Modified: trunk/titania/authors/contributions.php
==============================================================================
*** trunk/titania/authors/contributions.php (original)
--- trunk/titania/authors/contributions.php Thu Jun 25 21:14:34 2009
***************
*** 16,22 ****
  	exit;
  }
  
! display_contribs('author', titania::$author->user_id);
  
  titania::page_header('AUTHOR_CONTRIBUTIONS');
  titania::page_footer(true, 'authors/author_contributions.html');
\ No newline at end of file
--- 16,22 ----
  	exit;
  }
  
! titania_display_contribs('author', titania::$author->user_id);
  
  titania::page_header('AUTHOR_CONTRIBUTIONS');
  titania::page_footer(true, 'authors/author_contributions.html');
\ No newline at end of file

Modified: trunk/titania/includes/functions_display.php
==============================================================================
*** trunk/titania/includes/functions_display.php (original)
--- trunk/titania/includes/functions_display.php Thu Jun 25 21:14:34 2009
***************
*** 65,71 ****
  * @param int $parent_id The parent id/name (only show categories under this category)
  * @param string $blockname The name of the template block to use (categories by default)
  */
! function display_categories($parent_id = 0, $blockname = 'categories')
  {
  	titania::load_object('category');
  
--- 65,71 ----
  * @param int $parent_id The parent id/name (only show categories under this category)
  * @param string $blockname The name of the template block to use (categories by default)
  */
! function titania_display_categories($parent_id = 0, $blockname = 'categories')
  {
  	titania::load_object('category');
  
***************
*** 94,100 ****
  * @param int $id The parent id (only show contributions under this category, author, etc)
  * @param string $blockname The name of the template block to use (contribs by default)
  */
! function display_contribs($mode, $id, $blockname = 'contribs')
  {
  	titania::load_object('contribution');
  
--- 94,100 ----
  * @param int $id The parent id (only show contributions under this category, author, etc)
  * @param string $blockname The name of the template block to use (contribs by default)
  */
! function titania_display_contribs($mode, $id, $blockname = 'contribs')
  {
  	titania::load_object('contribution');
  

Modified: trunk/titania/index.php
==============================================================================
*** trunk/titania/index.php (original)
--- trunk/titania/index.php Thu Jun 25 21:14:34 2009
***************
*** 90,100 ****
  	* Default (display category/contrib list)
  	*/
  	default :
! 		display_categories($category_id);
  
  		if ($category_id != 0)
  		{
! 			display_contribs('category', $category_id);
  		}
  	break;
  }
--- 90,100 ----
  	* Default (display category/contrib list)
  	*/
  	default :
! 		titania_display_categories($category_id);
  
  		if ($category_id != 0)
  		{
! 			titania_display_contribs('category', $category_id);
  		}
  	break;
  }




More information about the customisationdb-commits mailing list