mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue in WireInput where setUrlSegments() didn't reset all segments when given array of segments smaller than what was previously set.
This commit is contained in:
@@ -713,6 +713,7 @@ class WireInput extends Wire {
|
||||
*
|
||||
*/
|
||||
public function setUrlSegments(array $urlSegments) {
|
||||
$this->urlSegments = array();
|
||||
$n = 1;
|
||||
foreach($urlSegments as $urlSegment) {
|
||||
$this->setUrlSegment($n, $urlSegment);
|
||||
|
Reference in New Issue
Block a user