]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/flushrouter.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / flushrouter.php
old mode 100644 (file)
new mode 100755 (executable)
index 51178a7..8bfb6fe
@@ -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";
\ No newline at end of file
+print "OK.\n";