Permalink
Browse files

fix a weird JSON parsing bug

  • Loading branch information...
1 parent 811ad9c commit a4f44c185c017666deeabbcda406630b3a6a21c5 @Geal committed Mar 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 wordpress/wordpress
View
@@ -3,8 +3,8 @@
<?php
require_once("config.php");
-if($path == "" && $backup_path == "" && $argv[1] != "config") {
- 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"}}';
+if($path == "" && $backup_path == "" && $argc == 1) {
+ 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);

0 comments on commit a4f44c1

Please sign in to comment.