Ignore:
Timestamp:
Oct 10, 2012, 2:50:48 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Zobrazení aktualit na stránce portálu.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Portal/UModulePortal.pas

    r105 r107  
    88  Classes, SysUtils, UModularSystem, SpecializedDictionary, USqlDatabase,
    99  UUtils, UWebSession, SpecializedList, UUser, UWebPage, UHtmlClasses,
    10   UModuleBase, UModuleUser;
     10  UModuleBase, UModuleUser, UModuleNews;
    1111
    1212type
     
    6666  WebPagePortal := TWebPagePortal.Create(nil);
    6767  ModuleBase.Pages.RegisterPage(WebPagePortal, '');
    68   TWebPagePortal(WebPagePortal).ModuleUser := TModuleUser(Manager.FindModuleByName('User'));
     68  ModuleUser := TModuleUser(Manager.FindModuleByName('User'));
     69  TWebPagePortal(WebPagePortal).ModuleUser := ModuleUser;
     70  TWebPagePortal(WebPagePortal).ModuleNews := TModuleNews(Manager.FindModuleByName('News'));
    6971  AfterStart;
    7072end;
     
    7678  FreeAndNil(WebPagePortal);
    7779  ModuleBase := nil;
     80  ModuleUser := nil;
    7881  AfterStop;
    7982end;
Note: See TracChangeset for help on using the changeset viewer.