Code Standards

Cleanup (again) the AppHelper.
pull/61/head
noud 2012-09-25 16:14:20 +02:00
parent af6cb0e896
commit f62dbfd595
2 changed files with 7 additions and 5 deletions

View File

@ -31,8 +31,9 @@ App::uses('Helper', 'View');
* @package app.View.Helper
*/
class AppHelper extends Helper {
function url($url = null, $full = false) {
if(is_array($url) && !isset($url['admin'])){
public function url($url = null, $full = false) {
if (is_array($url) && !isset($url['admin'])) {
$url['admin'] = false;
}
return parent::url($url, $full);

View File

@ -1,11 +1,12 @@
--- app/View/Helper/AppHelper.php.orig 2012-09-20 15:32:09.844653514 +0200
+++ app/View/Helper/AppHelper.php 2012-09-06 13:45:12.791544951 +0200
@@ -31,4 +31,10 @@
@@ -31,4 +31,11 @@
* @package app.View.Helper
*/
class AppHelper extends Helper {
+ function url($url = null, $full = false) {
+ if(is_array($url) && !isset($url['admin'])){
+
+ public function url($url = null, $full = false) {
+ if (is_array($url) && !isset($url['admin'])) {
+ $url['admin'] = false;
+ }
+ return parent::url($url, $full);