Skip to content

Commit

Permalink
Fix the parameter-order on strrpos
Browse files Browse the repository at this point in the history
  • Loading branch information
heiglandreas committed Feb 22, 2018
1 parent c900754 commit 2bcd115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ghostscript.php
Expand Up @@ -886,7 +886,7 @@ public function setPages($startPage, $endPage = null)
public function getOutputFileName()
{
$basename = $this->getOutputFile();
$lastDot = strrpos('.', basename($basename));
$lastDot = strrpos(basename($basename), '.');
if (false === $lastDot) {
return $basename . '.' . $this->getDevice()->getFileEnding();
}
Expand Down

0 comments on commit 2bcd115

Please sign in to comment.