[SCRIPTS] Make them work in v2 by setting PUBLICDIR
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user