Skip to content

Commit

Permalink
fix a weird JSON parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Mar 13, 2013
1 parent 811ad9c commit a4f44c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordpress/wordpress
Expand Up @@ -3,8 +3,8 @@
<?php <?php


require_once("config.php"); require_once("config.php");
if($path == "" && $backup_path == "" && $argv[1] != "config") { if($path == "" && $backup_path == "" && $argc == 1) {
echo '{ "version": 1, "title": "Wordpress", "type":"commands", "values" : [ {"name": "Please configure the script", "value": "", "command" : ".pilotssh/wordpress/wordpress config", "query": "Please enter the path of your WordPress website"}}'; echo '{ "version": 1, "title": "Wordpress", "values" : [ {"name": "Please configure the script", "value": "", "command" : ".pilotssh/wordpress/wordpress config", "query": "Please enter the path of your WordPress website"}], "type":"commands" }';
} }


define('ABSPATH', $path); define('ABSPATH', $path);
Expand Down

0 comments on commit a4f44c1

Please sign in to comment.