Skip to content

Commit

Permalink
spelling in comments and private method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartmut Holzgraefe committed Apr 23, 2008
1 parent a81d3b3 commit 8fe8649
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Server.php
Expand Up @@ -721,7 +721,7 @@ function http_PROPFIND()
/* TODO right now the user implementation has to make sure
collections end in a slash, this should be done in here
by checking the resource attribute */
$href = $this->_mergePathes($this->_SERVER['SCRIPT_NAME'], $path);
$href = $this->_mergePaths($this->_SERVER['SCRIPT_NAME'], $path);

/* minimal urlencoding is needed for the resource path */
$href = $this->_urlencode($href);
Expand Down Expand Up @@ -869,7 +869,7 @@ function http_PROPPATCH()

echo "<D:multistatus xmlns:D=\"DAV:\">\n";
echo " <D:response>\n";
echo " <D:href>".$this->_urlencode($this->_mergePathes($this->_SERVER["SCRIPT_NAME"], $this->path))."</D:href>\n";
echo " <D:href>".$this->_urlencode($this->_mergePaths($this->_SERVER["SCRIPT_NAME"], $this->path))."</D:href>\n";

foreach ($options["props"] as $prop) {
echo " <D:propstat>\n";
Expand Down Expand Up @@ -1033,7 +1033,7 @@ function http_GET()
if (false === $status) {
$this->http_status("404 not found");
} else {
// TODO: check setting of headers in various code pathes above
// TODO: check setting of headers in various code paths above
$this->http_status("$status");
}
}
Expand Down Expand Up @@ -2096,13 +2096,13 @@ function _unslashify($path)
}

/**
* Merge two pathes, make sure there is exactly one slash between them
* Merge two paths, make sure there is exactly one slash between them
*
* @param string parent path
* @param string child path
* @return string merged path
*/
function _mergePathes($parent, $child)
function _mergePaths($parent, $child)
{
if ($child{0} == '/') {
return $this->_unslashify($parent).$child;
Expand Down

0 comments on commit 8fe8649

Please sign in to comment.