leilukin-tumbleblog/modules/read_more/upgrades.php

29 lines
652 B
PHP
Raw Normal View History

2024-06-20 14:10:42 +00:00
<?php
if (!defined('UPGRADING') or !UPGRADING)
exit;
/**
* Function: read_more_add_config
* Adds config settings into an array.
*
* Versions: 2022.02 => 2022.03
*/
function read_more_add_config(): void {
$set = Config::current()->set(
"module_read_more",
array(
"apply_to_feeds" => false,
"default_text" => ""
),
true
);
if ($set === false)
error(
__("Error"),
__("Could not write the configuration file.")
);
}
read_more_add_config();