mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-21 04:49:58 +01:00
Fixes lighttpd issues.
This commit is contained in:
parent
84be82d175
commit
5e28056257
@ -121,13 +121,13 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event
|
||||
}
|
||||
|
||||
var item = getItem();
|
||||
if (item.isLocationLoaded) {
|
||||
if (item.isLoaded) {
|
||||
event.pub('location.changed', item);
|
||||
refresh();
|
||||
} else {
|
||||
notify.set('loading...');
|
||||
load(function () {
|
||||
item.isLocationLoaded = true;
|
||||
item.isLoaded = true;
|
||||
notify.set();
|
||||
event.pub('location.changed', item);
|
||||
});
|
||||
@ -136,7 +136,6 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/settings', 'core/event
|
||||
|
||||
refresh = function () {
|
||||
|
||||
|
||||
var item = getItem(),
|
||||
oldItems = _.values(item.content);
|
||||
|
||||
|
@ -7,7 +7,8 @@ function normalize_path($path, $trailing_slash = false) {
|
||||
}
|
||||
|
||||
define("APP_ABS_PATH", normalize_path(dirname(dirname(dirname(__FILE__)))));
|
||||
define("APP_ABS_HREF", normalize_path(dirname(dirname(dirname(getenv("SCRIPT_NAME")))), true));
|
||||
// define("APP_ABS_HREF", normalize_path(dirname(dirname(dirname(getenv("SCRIPT_NAME")))), true));
|
||||
define("APP_ABS_HREF", normalize_path(dirname(dirname(dirname(preg_replace('#^.*//#', '/', getenv("SCRIPT_NAME"))))), true)); // fixes lighttpd issues
|
||||
define("ABS_HREF", normalize_path(preg_replace('/[^\\/]*$/', '', getenv("REQUEST_URI")), true));
|
||||
|
||||
function normalized_require_once($lib) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user