mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-10 10:31:01 +02:00
update.php & daemon: chdir to script directory using __FILE__ magic constant
This commit is contained in:
parent
b6c1201c33
commit
9b27cec8c0
@ -2,7 +2,8 @@
|
||||
<?php
|
||||
define('DISABLE_SESSIONS', true);
|
||||
|
||||
chdir(dirname($_SERVER['SCRIPT_NAME']));
|
||||
chdir(dirname(__FILE__));
|
||||
|
||||
require_once "functions.php";
|
||||
require_once "sanity_check.php";
|
||||
require_once "config.php";
|
||||
|
@ -4,6 +4,7 @@
|
||||
// Some configurable variable may be found below.
|
||||
|
||||
declare(ticks = 1);
|
||||
chdir(dirname(__FILE__));
|
||||
|
||||
define('DISABLE_SESSIONS', true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user