summaryrefslogtreecommitdiffstats
path: root/includes/header.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
commitc955c27cbebba3edaab9532834ac72041eccbf58 (patch)
treea6fc54a3b73e043bf61e73f446d358a866cc7b58 /includes/header.php
parent77b0bd5e51aeefb0d09e7a5bcab633657f299d22 (diff)
downloadpathery-c955c27cbebba3edaab9532834ac72041eccbf58.tar.xz
Edited a few more places where "include_once" was being used within a method. Hopefully this doesn't break anything :)
Diffstat (limited to 'includes/header.php')
-rw-r--r--includes/header.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php
index 7085aea..368e1c8 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,4 +1,6 @@
<?php
+include_once('includes/datas.php');
+
function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = array()) {
global $accepted;
$resourceVer = '050513';
@@ -224,7 +226,6 @@ function userDataToJS() {
$r .= '"ID":"-1","accepted":false,"hasInsaneSpeed":false};';
} else {
$userID = $_SESSION['userID'];
- include_once('includes/datas.php');
$hasInsaneSpeed = hasExtrasUnlock($userID, UNLOCK_EXTRAS, MISC_UNLOCK_INSANE_SPEED);
$r = 'hasInsaneSpeed":'.$hasInsaneSpeed.'};'."\n";
$json = array('ID' => 'fat');