Permalink
Browse files

Set a proper php5-style constructor

  • Loading branch information...
1 parent 03b19ee commit f96f70f501058560415c9c337d87194f0e1fafae @josegonzalez committed Nov 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 libs/routes/page_route.php
@@ -47,9 +47,9 @@ class PageRoute extends CakeRoute {
* @return void
* @access public
*/
- function PageRoute($template, $defaults = array(), $options = array()) {
+ function __construct($template, $defaults = array(), $options = array()) {
$this->template = $template;
- $this->defaults = (array)$defaults;
+ $this->defaults = (array) $defaults;
$this->options = array_merge($this->options, (array) $options);
}

0 comments on commit f96f70f

Please sign in to comment.