4328c507f3efaf32f3718592d91add4b38bbfb45
Author: AD7six
Date: 2009-04-16 13:59:01 +0200
diff --git a/app_controller.php b/app_controller.php
index d3aed49..8581710 100644
--- a/app_controller.php
+++ b/app_controller.php
@@ -136,7 +136,7 @@ class AppController extends Controller {
* @return void
*/
function redirect($url, $code = null, $exit = true, $force = false) {
- if ($force && isset($this->params['isAjax'])) {
+ if ($force && !empty($this->params['isAjax'])) {
$this->set(compact('url'));
$this->output = '';
return $this->render('/elements/force_redirect', 'ajax');
diff --git a/controllers/components/unique_url.php b/controllers/components/unique_url.php
index cc2411e..187aa30 100644
--- a/controllers/components/unique_url.php
+++ b/controllers/components/unique_url.php
@@ -43,6 +43,7 @@ class UniqueUrlComponent extends Object {
*/
function initialize (&$controller) {
$this->controller =& $controller;
+ $this->check();
}
/**
* Verify that the current url is the right url to view the content
