This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class View_Page_Browse extends View_Page { | |
// On this page, 'browse' tab is selected | |
protected $_selected_top_nav_item = 'browse'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('SYSPATH') or die('No direct script access.'); | |
// Just use this file in application/classes/url.php for a fix until 3.2.2 is out | |
class URL extends Kohana_URL { | |
/** | |
* Fetches an absolute site URL based on a URI segment. | |
* | |
* echo URL::site('foo/bar'); | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/Kohana/Route.php b/classes/Kohana/Route.php | |
index fdd2e1b..d8e33fe 100644 | |
--- a/classes/Kohana/Route.php | |
+++ b/classes/Kohana/Route.php | |
@@ -531,8 +531,12 @@ class Kohana_Route { | |
return rtrim($params['host'], '/').'/'.$uri; | |
} | |
+ // Keep track of whether an optional param was replaced | |
+ $provided_optional = FALSE; |
OlderNewer