X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fflushrouter.php;h=8bfb6febdcbf6e9a9ba13fb751ad992b151973dc;hb=b261a77be2a894e3fe4d00c86925bac7fb5d061c;hp=51178a725c6d5acfb369cfcbebcb81387c897b75;hpb=7d64d8c78cfa102b91975598ef9e574d2ef14b8c;p=quix0rs-gnu-social.git diff --git a/scripts/flushrouter.php b/scripts/flushrouter.php old mode 100644 new mode 100755 index 51178a725c..8bfb6febdc --- a/scripts/flushrouter.php +++ b/scripts/flushrouter.php @@ -18,7 +18,8 @@ * along with this program. If not, see . */ -define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); +define('INSTALLDIR', dirname(__DIR__)); +define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $helptext = << @@ -31,4 +32,4 @@ require_once INSTALLDIR.'/scripts/commandline.inc'; $cache = Cache::instance(); $cache->delete(Router::cacheKey()); -print "OK.\n"; \ No newline at end of file +print "OK.\n";