TinyPortal

Development => Feedback => Topic started by: supportingactors on June 03, 2008, 10:27:00 PM

Title: Quick fix to front page bug (#315) in TP1.0.5b1
Post by: supportingactors on June 03, 2008, 10:27:00 PM
Bloc has noted that a fix will be in the next beta, but since I couldn't wait: after a bit of poking around-- based on a pointer from Ichbin-- I found a quick-n-dirty fix to the front page "bug" (http://www.tinyportal.net/index.php?topic=24083.0) (#315) I was having, which may benefit others:

In Sources/TPortal.php

Starting at line 1491:

if(!empty($mypage))
       $context['page_title'] = $row['subject'];

Add:

elseif($context['TPortal']['is_frontpage'])
       $context['page_title'] = $context['forum_name'];

Before:

else
       $context['page_title'] = $context['TPortal']['current_category'];


Title: Re: Quick fix to front page bug in TP1.0.5b1
Post by: IchBin on June 03, 2008, 11:33:43 PM
You may want to specify which bug your working around. lol
Title: Re: Quick fix to front page bug (#315) in TP1.0.5b1
Post by: supportingactors on June 04, 2008, 01:21:19 AM
As per suggestion, I also noted the bug, in addition to the link to the original discussion.
Title: Re: Quick fix to front page bug (#315) in TP1.0.5b1
Post by: PipeRain on June 12, 2008, 06:52:15 PM
Thanks for this!

Really helped a n00b fix a niggling problem.   :up: