summary refs log tree commit diff stats
path: root/pages/blog.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-10-03 15:24:04 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-10-03 15:24:04 -0400
commitb0aabd0559eb6ca70af2ffeb35299b63d7edf097 (patch)
treef6b31f7478c540ecb056bc22508fb1450e2735c7 /pages/blog.php
parentdc0fb9445e8a3ede8bc33d6779fadd89b7ea6893 (diff)
downloadfourisland-b0aabd0559eb6ca70af2ffeb35299b63d7edf097.tar.gz
fourisland-b0aabd0559eb6ca70af2ffeb35299b63d7edf097.tar.bz2
fourisland-b0aabd0559eb6ca70af2ffeb35299b63d7edf097.zip
Fixed voting issue
Because XHTML was accidentally disabled in the previous changeset, a new error was found that, when in HTML mode (required for IE and layouts prior to 7),
voting did not work due to the encoded ampherstand in the query string. This is odd because what works in XHTML should also work in HTML. So, to fix this,
XHTML was re-enabled and now the ampherstand is only encoded when XHTML mode is on.

Also fixed some positioning errors with the tails of bubbles.
Diffstat (limited to 'pages/blog.php')
-rwxr-xr-xpages/blog.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pages/blog.php b/pages/blog.php index 6703c12..28fa759 100755 --- a/pages/blog.php +++ b/pages/blog.php
@@ -29,6 +29,9 @@ if (isset($_GET['post']))
29{ 29{
30 $template = new FITemplate('post'); 30 $template = new FITemplate('post');
31 $template->adds_block('INTERNAL',array('exi'=>1)); 31 $template->adds_block('INTERNAL',array('exi'=>1));
32 $template->add('IFXAMP', $xhtml ? '&amp;' : '&');
33 $template->add('IFXLT', $xhtml ? '&lt;' : '<');
34 $template->add('IFXGT', $xhtml ? '&gt;' : '>');
32 35
33 $getpost = "SELECT * FROM updates WHERE slug = \"" . urldecode($_GET['post']) . "\""; 36 $getpost = "SELECT * FROM updates WHERE slug = \"" . urldecode($_GET['post']) . "\"";
34 $getpost2 = mysql_query($getpost); 37 $getpost2 = mysql_query($getpost);