28 lines
500 B
PHP
28 lines
500 B
PHP
//<?php
|
|
|
|
/* To prevent PHP errors (extending class does not exist) revealing path */
|
|
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
|
{
|
|
exit;
|
|
}
|
|
|
|
class cms_hook_Database extends _HOOK_CLASS_
|
|
{
|
|
|
|
|
|
/**
|
|
* Constructor
|
|
* Gets stores which are always needed to save individual queries
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->initLoad[] = 'cms_menu';
|
|
$this->initLoad[] = 'cms_databases';
|
|
$this->initLoad[] = 'pages_page_urls';
|
|
|
|
/* Hand over to normal method */
|
|
parent::__construct();
|
|
}
|
|
|
|
} |