Changeset 888 for trunk/Modules/Search


Ignore:
Timestamp:
Dec 27, 2022, 7:50:23 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Updated Common package to latest version.
  • Modified: Fixes related to PHP 8.x.
File:
1 edited

Legend:

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

    r880 r888  
    11<?php
    22
    3 class ModuleSearch extends AppModule
     3class ModuleSearch extends Module
    44{
    55  var $SearchItems;
     
    1717  }
    1818
    19   function DoStart()
     19  function DoStart(): void
    2020  {
    21     $this->System->RegisterPage('search', 'PageSearch');
    22     $this->System->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox'));
     21    $this->System->RegisterPage(['search'], 'PageSearch');
     22    Core::Cast($this->System)->RegisterPageBarItem('Left', 'Search', array($this, 'ShowSearchBox'));
    2323  }
    2424
     
    5454class PageSearch extends Page
    5555{
    56   function Show()
     56  function Show(): string
    5757  {
    5858    $this->Title = T('Search');
Note: See TracChangeset for help on using the changeset viewer.