summary refs log tree commit diff stats
path: root/includes
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 /includes
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 'includes')
-rw-r--r--includes/layout.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/includes/layout.php b/includes/layout.php index 8e92256..ffe1aa6 100644 --- a/includes/layout.php +++ b/includes/layout.php
@@ -22,21 +22,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25if (isset($_GET['layout']))
26{
27 if (!file_exists('theme/layouts/' . basename($_GET['layout'])))
28 {
29 $_GET['layout'] = '7';
30 }
31
32 setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com');
33
34 unset($_GET['layout']);
35
36 header('Location: ' . getRewriteURL());
37 exit;
38}
39
40$template = new FITemplate('layouts/' . getLayout() . '/layout'); 25$template = new FITemplate('layouts/' . getLayout() . '/layout');
41 26
42$template->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); 27$template->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none');