prevent js file to get stored in lastUrl

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@442 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2009-10-27 20:42:12 +00:00
parent 4bf8c2fff9
commit 485bb8912b
2 changed files with 9 additions and 1 deletions

View file

@ -63,8 +63,15 @@ if (!defined('UNIT_TEST_MODE')) {
if (isset($_SESSION['lastUrl'])) {
$GLOBALS['lastUrl'] = $_SESSION['lastUrl'];
}
//this here is hacky, but currently the only way to
// differentiate between css/js php files and normal
// http files
if (!isset($GLOBALS['saveInLastUrl'])
|| $GLOBALS['saveInLastUrl']
) {
$_SESSION['lastUrl'] = $_SERVER['REQUEST_URI'];
}
}
}
// 5 // Create mandatory services and objects

View file

@ -1,5 +1,6 @@
<?php
header('Content-Type: text/javascript');
$GLOBALS['saveInLastUrl'] = false;
require_once '../src/SemanticScuttle/header.php';
require_once 'SemanticScuttle/functions.php';
$player_root = ROOT .'includes/player/';