]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/settag.php
Make attachment fit better in notice: drop text and link
[quix0rs-gnu-social.git] / scripts / settag.php
old mode 100644 (file)
new mode 100755 (executable)
index ca260f7..fac4414
@@ -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 = '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);