Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing PHP_EOL constant to simply the newline character so that the…

… unit tests will run correctly on Windows.
  • Loading branch information...
commit 3a50aef9b86f91c7b4e8ba557dd4d32d64182ff3 1 parent 10e8c69
@orware authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/joomla/database/query.php
View
4 libraries/joomla/database/query.php
@@ -65,11 +65,11 @@ public function __toString()
{
if (substr($this->name, -2) == '()')
{
- return PHP_EOL . substr($this->name, 0, -2) . '(' . implode($this->glue, $this->elements) . ')';
+ return "\n" . substr($this->name, 0, -2) . '(' . implode($this->glue, $this->elements) . ')';
}
else
{
- return PHP_EOL . $this->name . ' ' . implode($this->glue, $this->elements);
+ return "\n" . $this->name . ' ' . implode($this->glue, $this->elements);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.