mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +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) {
|
public function setUrlSegments(array $urlSegments) {
|
||||||
|
$this->urlSegments = array();
|
||||||
$n = 1;
|
$n = 1;
|
||||||
foreach($urlSegments as $urlSegment) {
|
foreach($urlSegments as $urlSegment) {
|
||||||
$this->setUrlSegment($n, $urlSegment);
|
$this->setUrlSegment($n, $urlSegment);
|
||||||
|
Reference in New Issue
Block a user