Index: trunk/core/kernel/utility/http_query.php
===================================================================
diff -u -r3229 -r3236
--- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3229)
+++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3236)
@@ -454,7 +454,7 @@
// 2. return error template then
$template_found = true;
$template_path = $this->Application->ConfigValue('ErrorTemplate');
- if(!$template_path) $template_path = 'error_template';
+ if(!$template_path) $template_path = 'error_notfound';
}
}
@@ -472,6 +472,12 @@
$this->Application->HandleEvent($module_event);
$item_id = $this->Get($module_prefix.'_id');
$module_params = Array($module_prefix.'_id' => $item_id ? $item_id : '0' );
+
+ if($module_event->status == erFAIL)
+ {
+ $not_found = $this->Application->ConfigValue('ErrorTemplate');
+ $this->Set('t', $not_found ? $not_found : 'error_notfound' );
+ }
}
$this->finalizeParsing($passed, $module_params);
Index: trunk/admin/install/upgrades/inportal_upgrade_v1.1.4.sql
===================================================================
diff -u -r3229 -r3236
--- trunk/admin/install/upgrades/inportal_upgrade_v1.1.4.sql (.../inportal_upgrade_v1.1.4.sql) (revision 3229)
+++ trunk/admin/install/upgrades/inportal_upgrade_v1.1.4.sql (.../inportal_upgrade_v1.1.4.sql) (revision 3236)
@@ -1,7 +1,7 @@
INSERT INTO ConfigurationValues VALUES ('SessionReferrerCheck', '1', 'In-Portal', 'in-portal:configure_general');
INSERT INTO ConfigurationValues VALUES ('SessionCookieName', 'sid', 'In-Portal', 'in-portal:configure_general');
INSERT INTO ConfigurationValues VALUES ('UseModRewrite', '0', 'In-Portal', 'in-portal:configure_general');
-INSERT INTO ConfigurationValues VALUES ('ErrorTemplate', 'error_template', 'In-Portal', 'in-portal:configure_general');
+INSERT INTO ConfigurationValues VALUES ('ErrorTemplate', 'error_notfound', 'In-Portal', 'in-portal:configure_general');
INSERT INTO ConfigurationAdmin VALUES ('SessionReferrerCheck', 'la_Text_Website', 'la_promt_ReferrerCheck', 'checkbox', NULL , NULL , '9', '1');
INSERT INTO ConfigurationAdmin VALUES ('SessionCookieName', 'la_Text_Website', 'la_prompt_session_cookie_name', 'text', '', '', 8, 1);
Index: trunk/themes/default/error_notfound.tpl
===================================================================
diff -u
--- trunk/themes/default/error_notfound.tpl (revision 0)
+++ trunk/themes/default/error_notfound.tpl (revision 3236)
@@ -0,0 +1,125 @@
+
+
+
+
+
+
+
+
+
+
+ 
|
+ 
|
+ 
|
+
+
+
+
+
+
+ 
|
+
+
+
+
+
+
+ 
|
+ |
+
+
+
+ " width="18" height="12" alt="" />
|
+ |
+ |
+ |
+
+
+ |
+
+
+
+ |
+
+
+ 
|
+
+
+
+ 
+
+ |
+
+
+
+ 
|
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+