Changing the router to support any number of segments in the default route. Closes #261.
diff --git a/system/core/Router.php b/system/core/Router.php
index 9276800..e215193 100644
--- a/system/core/Router.php
+++ b/system/core/Router.php
@@ -144,7 +144,7 @@
$this->set_class($x[0]);
$this->set_method($x[1]);
- $this->_set_request(array($x[0], $x[1]));
+ $this->_set_request($x);
}
else
{
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index c3693e5..80d830d 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -160,6 +160,7 @@
<li>Documented <kbd>append_output()</kbd> in the <a href="libraries/output.html">Output Class</a>.</li>
<li>Documented a second argument in the <kbd>decode()</kbd> function for the <a href="libraries/encryption.html">Encryption Class</a>.</li>
<li>Documented db->close().</li>
+ <li>Updated the router to support a default route with any number of segments.</li>
<li>Moved _remove_invisible_characters() function from the <a href="libraries/security.html">Security Library</a> to <a href="general/common_functions.html">common functions.</a></li>
</ul>
</li>