[SCRIPTS] Make them work in v2 by setting PUBLICDIR

This commit is contained in:
Diogo Cordeiro
2019-07-15 04:10:29 +01:00
parent 5be705ca2a
commit 2e6c7b1bb8
59 changed files with 117 additions and 58 deletions

View File

@@ -18,7 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('INSTALLDIR', dirname(__DIR__));
define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
$helptext = <<<END_OF_FLUSHROUTER_HELP
flushrouter.php -s<sitename>
@@ -31,4 +32,4 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
$cache = Cache::instance();
$cache->delete(Router::cacheKey());
print "OK.\n";
print "OK.\n";