X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fsettag.php;h=fac44146d6d3d0903f9589e24c35989c2eddd505;hb=b261a77be2a894e3fe4d00c86925bac7fb5d061c;hp=ca260f7bf9456822fb42139299fe545960b1cae7;hpb=841da543015ec4f0e2efa143162c10a4398bc4d7;p=quix0rs-gnu-social.git diff --git a/scripts/settag.php b/scripts/settag.php old mode 100644 new mode 100755 index ca260f7bf9..fac44146d6 --- a/scripts/settag.php +++ b/scripts/settag.php @@ -18,7 +18,8 @@ * along with this program. If not, see . */ -define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); +define('INSTALLDIR', dirname(__DIR__)); +define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public'); $shortoptions = 'd'; $longoptions = array('delete'); @@ -66,12 +67,12 @@ if ($i !== false) { } } else { print "Already set.\n"; - exit(-1); + exit(0); } } else { if (have_option('d', 'delete')) { // Delete print "No such tag.\n"; - exit(-1); + exit(0); } else { $tags[] = $tag; $result = $sn->setTags($tags);