summaryrefslogtreecommitdiff
path: root/inc/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cache.php')
-rw-r--r--inc/cache.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/cache.php b/inc/cache.php
index 2f3c746c..95b1281f 100644
--- a/inc/cache.php
+++ b/inc/cache.php
@@ -4,10 +4,7 @@
* Copyright (c) 2010-2013 Tinyboard Development Group
*/
-if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
- // You cannot request this file directly.
- exit;
-}
+defined('TINYBOARD') or exit;
class Cache {
private static $cache;