formatting
This commit is contained in:
parent
427acc55a0
commit
c58a13ae88
8 changed files with 24 additions and 17 deletions
|
@ -317,5 +317,6 @@ class LogEvent extends Event
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class DatabaseUpgradeEvent extends Event {
|
class DatabaseUpgradeEvent extends Event
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,7 +90,8 @@ class CommentList extends Extension
|
||||||
/** @var CommentListTheme $theme */
|
/** @var CommentListTheme $theme */
|
||||||
public $theme;
|
public $theme;
|
||||||
|
|
||||||
public function onInitExt(InitExtEvent $event) {
|
public function onInitExt(InitExtEvent $event)
|
||||||
|
{
|
||||||
global $config;
|
global $config;
|
||||||
$config->set_default_int('comment_window', 5);
|
$config->set_default_int('comment_window', 5);
|
||||||
$config->set_default_int('comment_limit', 10);
|
$config->set_default_int('comment_limit', 10);
|
||||||
|
|
|
@ -8,7 +8,8 @@ class LogDatabase extends Extension
|
||||||
$config->set_default_int("log_db_priority", SCORE_LOG_INFO);
|
$config->set_default_int("log_db_priority", SCORE_LOG_INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event) {
|
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event)
|
||||||
|
{
|
||||||
global $config, $database;
|
global $config, $database;
|
||||||
|
|
||||||
if ($config->get_int("ext_log_database_version") < 1) {
|
if ($config->get_int("ext_log_database_version") < 1) {
|
||||||
|
|
|
@ -61,7 +61,8 @@ class PoolCreationEvent extends Event
|
||||||
|
|
||||||
class Pools extends Extension
|
class Pools extends Extension
|
||||||
{
|
{
|
||||||
public function onInitExt(InitExtEvent $event) {
|
public function onInitExt(InitExtEvent $event)
|
||||||
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// Set the defaults for the pools extension
|
// Set the defaults for the pools extension
|
||||||
|
@ -75,7 +76,8 @@ class Pools extends Extension
|
||||||
$config->set_default_bool(PoolsConfig::AUTO_INCREMENT_ORDER, false);
|
$config->set_default_bool(PoolsConfig::AUTO_INCREMENT_ORDER, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event) {
|
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event)
|
||||||
|
{
|
||||||
global $config, $database;
|
global $config, $database;
|
||||||
|
|
||||||
// Create the database tables
|
// Create the database tables
|
||||||
|
|
|
@ -5,7 +5,8 @@ require_once "config.php";
|
||||||
|
|
||||||
class TagCategories extends Extension
|
class TagCategories extends Extension
|
||||||
{
|
{
|
||||||
public function onInitExt(InitExtEvent $event) {
|
public function onInitExt(InitExtEvent $event)
|
||||||
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
// whether we split out separate categories on post view by default
|
// whether we split out separate categories on post view by default
|
||||||
|
@ -13,7 +14,8 @@ class TagCategories extends Extension
|
||||||
$config->set_default_bool(TagCategoriesConfig::SPLIT_ON_VIEW, true);
|
$config->set_default_bool(TagCategoriesConfig::SPLIT_ON_VIEW, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event) {
|
public function onDatabaseUpgrade(DatabaseUpgradeEvent $event)
|
||||||
|
{
|
||||||
global $config, $database;
|
global $config, $database;
|
||||||
|
|
||||||
if ($config->get_int(TagCategoriesConfig::VERSION) < 1) {
|
if ($config->get_int(TagCategoriesConfig::VERSION) < 1) {
|
||||||
|
|
Reference in a new issue