Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28 from simensen/ParametrizedEntryOutputPathSpace…
Browse files Browse the repository at this point in the history
…QuickFix

The $space argument was not actually being used by normalize
  • Loading branch information
farazdagi committed Jan 15, 2012
2 parents 6deebff + eb912e2 commit c0c9faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Phrozn/Site/View/OutputPath/Entry/Parametrized.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private function normalize($param, $space = '-')
}
$param = preg_replace('/[^a-zA-Z0-9 -]/', '', $param);
$param = strtolower($param);
$param = preg_replace('/[\s-]+/', '-', $param);
$param = preg_replace('/[\s-]+/', $space, $param);

return $param;
}
Expand Down

0 comments on commit c0c9faa

Please sign in to comment.