Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Typos #492

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Typos #492

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions api/extensions/hooks/getPageStatusIcon.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ the unchanged second parameter.
<?php

// config.php
$GLOBALS['TL_HOOKS']['myGetPageStatusIcon'][] = array('MyClass', 'myGetPageStatusIcon');
$GLOBALS['TL_HOOKS']['getPageStatusIcon'][] = array('MyClass', 'myGetPageStatusIcon');

// MyClass.php
public function myGetPageStatusIcon(Database_Result $objPage, $image)
public function myGetPageStatusIcon($objPage, $image)
{
if ($objPage->type == 'my_page')
{
Expand All @@ -52,4 +52,4 @@ public function myGetPageStatusIcon(Database_Result $objPage, $image)

### Reference

- [system/libraries/Controller.php](https://github.com/contao/core/blob/3.5.0/system/modules/core/library/Contao/Controller.php#L608)
- [system/libraries/Controller.php](https://github.com/contao/core/blob/3.5.0/system/modules/core/library/Contao/Controller.php#L608)