Here's a piece from system/library/url.php on my Opencart 2.3:
Code: Select all
public function addRewrite($rewrite) {
$this->rewrite[] = $rewrite;
}
What is the purpose of having $this->rewrite as an array? I would guess this is so that more rewrites can be added as needed, but my whole Opencart 2 code contains only one addRewrite() call, which happens to be inside catalog/controller/startup/seo_url.php. Any ideas?