Index: core/admin_templates/tools/system_tools.tpl
===================================================================
--- core/admin_templates/tools/system_tools.tpl
+++ core/admin_templates/tools/system_tools.tpl
@@ -38,8 +38,8 @@
: master:configs_parsed ()
- "/>
- "/>
+ "/>
+ "/>
@@ -50,7 +50,7 @@
: master:sections_parsed ()
- "/>
+ "/>
@@ -87,7 +87,7 @@
: master:config_files, master:configs_parsed ()
- "/>
+ "/>
@@ -102,7 +102,7 @@
- "/>
+ "/>
@@ -113,7 +113,7 @@
: master:cms_menu, master:template_mapping, master:StructureTree ()
- "/>
+ "/>
@@ -130,7 +130,7 @@
- "/>
+ "/>
@@ -153,7 +153,7 @@
- "/>
+ "/>
@@ -185,7 +185,7 @@
- "/>
+ "/>
@@ -232,6 +232,12 @@
getFrame('menu').location.reload();
+ function submit_event_without_init(prefix_special, event, t, form_action, $ajax)
+ {
+ Application.SetVar('full_init', 0);
+ submit_event(prefix_special, event, t, form_action, $ajax);
+ }
+
$(document).ready(
function () {
@@ -307,4 +313,4 @@
-
\ No newline at end of file
+
Index: core/kernel/application.php
===================================================================
--- core/kernel/application.php
+++ core/kernel/application.php
@@ -381,7 +381,9 @@
$this->InitDone = true;
- $this->HandleEvent(new kEvent('adm:OnStartup'));
+ if ( $this->GetVar('full_init', 1) ) {
+ $this->HandleEvent(new kEvent('adm:OnStartup'));
+ }
return true;
}
Index: tools/run_event.php
===================================================================
--- tools/run_event.php
+++ tools/run_event.php
@@ -36,6 +36,10 @@
include_once(FULL_PATH . '/core/kernel/startup.php');
+if ( $argv[1] === 'adm:OnDeploy' ) {
+ $_GET['full_init'] = 0;
+}
+
$application =& kApplication::Instance();
$application->Init();
@@ -58,4 +62,4 @@
exit($code);
}
-$end = microtime(true);
\ No newline at end of file
+$end = microtime(true);