Ignore:
Timestamp:
Dec 29, 2023, 11:44:26 PM (11 months ago)
Author:
chronos
Message:
  • Modified: Unit names without U prefix.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Modules/System/ModuleSystem.pas

    r145 r146  
    1 unit UModuleSystem;
     1unit ModuleSystem;
    22
    33interface
     
    2828
    2929uses
    30   UCore, USqlDatabase;
     30  Core, USqlDatabase;
    3131
    3232{ TModuleSystem }
     
    4242    if Module.Installed then Data.Add('Installed', '1')
    4343      else Data.Add('Installed', '0');
    44     Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Module.Identification + '"');
     44    Core.Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Module.Identification + '"');
    4545  finally
    4646    Data.Free;
     
    7272  try
    7373    DbRows := TDbRows.Create;
    74     Core.CommonDatabase.Select(DbRows, 'SystemModule', '`Name`, `Installed`');
     74    Core.Core.CommonDatabase.Select(DbRows, 'SystemModule', '`Name`, `Installed`');
    7575    for I := 0 to DbRows.Count - 1 do
    7676    with DbRows[I] do begin
     
    100100  try
    101101    DbRows := TDbRows.Create;
    102     Core.CommonDatabase.Query(DbRows,
     102    Core.Core.CommonDatabase.Query(DbRows,
    103103      'CREATE TABLE IF NOT EXISTS `SystemModule` (' +
    104104      '  `Id` int(11) NOT NULL AUTO_INCREMENT,' +
     
    127127  try
    128128    DbRows := TDbRows.Create;
    129     Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `SystemModule`');
     129    Core.Core.CommonDatabase.Query(DbRows, 'DROP TABLE IF EXISTS `SystemModule`');
    130130  finally
    131131    DbRows.Free;
     
    149149    Data := TDictionaryStringString.Create;
    150150
    151     Core.CommonDatabase.Select(DbRows, 'SystemModule', 'Name');
     151    Core.Core.CommonDatabase.Select(DbRows, 'SystemModule', 'Name');
    152152
    153153    for I := 0 to Manager.Modules.Count - 1 do
     
    166166      Index := 0;
    167167      while (Index < DbRows.Count) and (DbRows[Index].Items['Name'] <> Identification) do Inc(Index);
    168       if Index >= DbRows.Count then Core.CommonDatabase.Insert('SystemModule', Data)
    169         else Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Identification + '"');
     168      if Index >= DbRows.Count then Core.Core.CommonDatabase.Insert('SystemModule', Data)
     169        else Core.Core.CommonDatabase.Update('SystemModule', Data, 'Name="' + Identification + '"');
    170170    end;
    171171  finally
Note: See TracChangeset for help on using the changeset viewer.