Skip to content

Commit

Permalink
Fixed JSON output. Removed the xxxx because we are removing it comple…
Browse files Browse the repository at this point in the history
…telly in all directories paths
  • Loading branch information
Radek-Suski committed Mar 2, 2016
1 parent 95d377c commit 1085f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_admin/models/sysinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ public function getDirectory()
*/
private function addDirectory($name, $path, $message = '')
{
$this->directories[$name] = array('writable' => is_writable($path), 'message' => $message);
$this->directories[str_replace(JPATH_ROOT, '', $name)] = array('writable' => is_writable($path), 'message' => $message);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function display($tpl = null)

$data = $this->getLayoutData();

echo str_replace(JPATH_ROOT, 'xxxxxx', json_encode($data));
echo json_encode($data);

JFactory::getApplication()->close();
}
Expand Down

0 comments on commit 1085f72

Please sign in to comment.