[SCRIPTS] Set PUBLICDIR in plugin scripts as well

This commit is contained in:
Alexei Sorokin
2019-09-18 17:15:00 +03:00
committed by Diogo Peralta Cordeiro
parent 3460c13535
commit 1ba3416cd1
35 changed files with 743 additions and 596 deletions

View File

@@ -25,9 +25,8 @@
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
*/
defined('GNUSOCIAL') || die();
define('INSTALLDIR', realpath(__DIR__ . '/../../..'));
define('INSTALLDIR', dirname(__DIR__, 3));
define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
$shortoptions = 'u:';
$longoptions = array('url=');