summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-19 10:12:19 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-19 10:12:19 -0400
commit749178f34371aabb8a22166fe64920a42679dcc5 (patch)
tree59779e38ccc73b17decbd01dd279dbf3688a0cc9 /index.php
parentc87951f89518e276a85f41eaecf34da0720f49c5 (diff)
better headers
Added H1 headers to all pages. Added H2 headers to sections of pages, where appropriate. Moved a lot of TODOs around. Made the public stream the default if no action is specified. darcs-hash:20080519141219-84dde-f9917a8351596060faa7ff5d231417773764a8fd.gz
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index 26a0946f0..35168621b 100644
--- a/index.php
+++ b/index.php
@@ -23,6 +23,11 @@ define('LACONICA', true);
require_once(INSTALLDIR . "/lib/common.php");
$action = $_REQUEST['action'];
+
+if (!$action) {
+ common_redirect(common_local_url('public'));
+}
+
$actionfile = INSTALLDIR."/actions/$action.php";
if (file_exists($actionfile)) {