Permalink
Browse files

fix for PHP 5.2, thanks to Jazz:

  • Loading branch information...
1 parent 79f09ac commit 3e477e6e2a8464bb9d35f213e44efd70f83835c0 @jorgebg committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 SearchAction.php
View
@@ -47,7 +47,7 @@ class SearchAction extends CAction {
public $showAttributes;
public $urlAttribute;
public $urlCallback;
- public $urlExpression = 'array(lcfirst(get_class($result))."/view", "id"=>$result->id)';
+ public $urlExpression = 'array(strtolower(substr(get_class($result),0,1)).substr(get_class($result),1)."/view", "id"=>$result->id)';
public $queryParameter = 'q';
public $highlightTag = 'strong';
public $cssFile;

0 comments on commit 3e477e6

Please sign in to comment.