From 64e2b88b0ad6a622dd34df3c9e85a07074f51521 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 22 Jun 2012 19:37:23 +0100 Subject: [PATCH] remove theme dependencies on private _get_internal_parts --- themes/danbooru/layout.class.php | 2 +- themes/lite/layout.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index ee760130..2a54ae20 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -125,7 +125,7 @@ class Layout { global $user; $username = url_escape($user->name); // hack - $qp = _get_query_parts(); + $qp = explode("/", @$_GET["q"]); $hw = class_exists("Wiki"); // php sucks switch($qp[0]) { diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php index 127e5b21..cd498298 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -80,7 +80,7 @@ class Layout { global $user; $username = url_escape($user->name); // hack - $qp = _get_query_parts(); + $qp = explode("/", @$_GET["q"]); $hw = class_exists("Wiki"); // php sucks switch($qp[0]) {