Commit 7f39a747a1444141d1c9e8656bdb2cc51e301db6

Authored by David RENÉ
1 parent e80ba025

[!] set web space, content and control panel to fix another web space content to…

… be rendered instead of the show apps.
The bug was when the web content and web space was set to another i.e. "DASHBOARD". The dashboard content was rendered instead of the "show apps" of hayamiki.
[!] set the right version (1.19) instead of (1.19.1) of the library
src/web_controller/hayamiki.anubis
@@ -757,6 +757,18 @@ define (WEB_Session) -> WEB_Controller_Result @@ -757,6 +757,18 @@ define (WEB_Session) -> WEB_Controller_Result
757 with _T = make_translate_function(_session), 757 with _T = make_translate_function(_session),
758 lwa = _session.web_request.lwa, 758 lwa = _session.web_request.lwa,
759 web_site_directory = get_web_site_directory(_session), 759 web_site_directory = get_web_site_directory(_session),
  760 +
  761 + //set the web space
  762 + set_web_space(_session, "HK");
  763 +
  764 + //Set content
  765 + set_web_content(_session, "HK_SHOW_APPS");
  766 +
  767 + //Set control panel to nothing
  768 + replace_String(_session.fields, "AWS_CP.APP", get_web_app(_session));
  769 + replace_String(_session.fields, "AWS_CP.SPACE", "HK");
  770 + replace_String(_session.fields, "AWS_CP.NAME", "NO_PANEL");
  771 +
760 if show_apps_content( db, hk_db, _T, _session.language, web_site_directory) is 772 if show_apps_content( db, hk_db, _T, _session.language, web_site_directory) is
761 { 773 {
762 failure then 774 failure then
src/web_controller/hayamiki_plugin.anubis
@@ -37,7 +37,7 @@ global define WEB_Plugin @@ -37,7 +37,7 @@ global define WEB_Plugin
37 web_plugin( 37 web_plugin(
38 "HAYAMIKI", 38 "HAYAMIKI",
39 "BASE", 39 "BASE",
40 - "1.19.1", 40 + "1.19",
41 _Int_to_ISO_8601_datetime(to_Int(__TIME__)), 41 _Int_to_ISO_8601_datetime(to_Int(__TIME__)),
42 plugin_get_controller, 42 plugin_get_controller,
43 plugin_get_typed_content 43 plugin_get_typed_content