Ignore:
Timestamp:
Feb 22, 2015, 11:20:50 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Tabs converted to spaces.
  • Modified: Remove spaces from end of lines.
  • Added: Code format script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Translation.php

    r815 r816  
    2323  function Start()
    2424  {
    25         global $TranslationTree;
     25    global $TranslationTree;
    2626
    27                 $this->System->RegisterPage('comparison.php', 'PageTranslationComparison');
    28         $this->System->RegisterPage('form.php', 'PageTranslationForm');
    29         $this->System->RegisterPage('save.php', 'PageTranslationSave');
    30         $this->System->RegisterPage('progress', 'PageProgress');
     27    $this->System->RegisterPage('comparison.php', 'PageTranslationComparison');
     28    $this->System->RegisterPage('form.php', 'PageTranslationForm');
     29    $this->System->RegisterPage('save.php', 'PageTranslationSave');
     30    $this->System->RegisterPage('progress', 'PageProgress');
    3131    $this->System->RegisterPage('TranslationList.php', 'PageTranslationList');
    3232    $this->System->RegisterPage('LoadNames.php', 'PageLoadNames');
     
    4242    if(array_key_exists('Search', $this->System->ModuleManager->Modules))
    4343    {
    44                   foreach($TranslationTree as $Group)
    45                   {
    46                           $Table = $Group['TablePrefix'];
     44      foreach($TranslationTree as $Group)
     45      {
     46        $Table = $Group['TablePrefix'];
    4747
    48                                 $Columns = array('ID', 'Entry');
    49                           foreach($Group['Items'] as $Item)
    50                           {
    51                                 if($Item['Column'] != '') $Columns[] = $Item['Column'];
    52                           }
     48        $Columns = array('ID', 'Entry');
     49        foreach($Group['Items'] as $Item)
     50        {
     51          if($Item['Column'] != '') $Columns[] = $Item['Column'];
     52        }
    5353
    5454        $this->System->ModuleManager->Modules['Search']->RegisterSearch('group'.$Group['Id'],
    5555        sprintf(T('Translation group "%s"'), $Group['Name']), $Columns, '`'.$Table.'`', $this->System->Link('/TranslationList.php?group='.
    5656        $Group['Id'].'&user=0&state=0&entry=&text='));
    57                 }
     57      }
    5858    }
    5959  }
     
    6161  function ShowRSS()
    6262  {
    63         $Items = array();
     63    $Items = array();
    6464    $DbResult = $this->Database->query('SELECT UNIX_TIMESTAMP(`Date`) AS `Date`, `User`.`Name` AS `UserName`, `Text` FROM `Log` '.
    6565    'JOIN `User` ON `User`.`ID` = `Log`.`User` WHERE `Type` = 1 ORDER BY `Date` DESC LIMIT 100');
     
    8181      'WebmasterEmail' => $this->System->Config['Web']['AdminEmail'],
    8282      'Items' => $Items,
    83                 ));
     83    ));
    8484    return($Output);
    8585  }
Note: See TracChangeset for help on using the changeset viewer.