summaryrefslogtreecommitdiff
path: root/mobile/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/index.php')
-rw-r--r--mobile/index.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/mobile/index.php b/mobile/index.php
index b0b374497..edbf586e0 100644
--- a/mobile/index.php
+++ b/mobile/index.php
@@ -6,13 +6,7 @@
define('MOBILE_VERSION', true);
require_once "../config.php";
- require_once "functions.php";
- require_once "../functions.php";
-
- require_once "../sessions.php";
-
- require_once "../version.php";
- require_once "../db-prefs.php";
+ require_once "mobile-functions.php";
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
@@ -73,12 +67,12 @@
<a class="button" href="prefs.php">Preferences</a>
</div>
- <?php
+ <?php
$use_cats = mobile_get_pref($link, 'ENABLE_CATS');
$offset = (int) db_escape_string($_REQUEST["skip"]);
if ($use_cats) {
- render_categories_list($link);
+ render_categories_list($link);
} else {
render_flat_feed_list($link, $offset);
}