]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/command.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / command.php
index 256743f5353bc43ff2c3a4c33957bd432d389223..182518d0aa54ff8d6ab49f4eefe285992db9eca3 100755 (executable)
@@ -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');
 
 $shortoptions = 'i:n:o';
 $longoptions = array('id=', 'nickname=', 'owner');
@@ -33,7 +34,7 @@ Perform commands on behalf of a user, such as sub, unsub, join, drop
 
 END_OF_USERROLE_HELP;
 
-require_once INSTALLDIR.'/scripts/commandline.inc';
+require_once INSTALLDIR . '/scripts/commandline.inc';
 
 function interpretCommand($user, $body)
 {