mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixed a PHP8.3 issue and removed BOM at Mig 139 (causes header_send)
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_modify_eQSL_url extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$sql = "UPDATE config SET eqsl_download_url = 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm' WHERE id=1";
|
||||
$this->db->query($sql);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
// Will not go back to insecure connections
|
||||
}
|
||||
}
|
||||
?>
|
||||
17
application/migrations/139_modify_eqsl.php
Normal file
17
application/migrations/139_modify_eqsl.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Migration_modify_eqsl extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$this->db->where('id', '1');
|
||||
$this->db->update('config', array('eqsl_download_url' => 'https://www.eqsl.cc/qslcard/DownloadInBox.cfm'));
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
// Will not go back to insecure connections
|
||||
}
|
||||
}
|
||||
@@ -53,8 +53,7 @@ function isExtensionInstalled($extensionName)
|
||||
return in_array($extensionName, get_loaded_extensions());
|
||||
}
|
||||
|
||||
function delDir($dir)
|
||||
{
|
||||
function delDir($dir) {
|
||||
$files = glob($dir . '*', GLOB_MARK);
|
||||
foreach ($files as $file) {
|
||||
if (substr($file, -1) == '/') {
|
||||
@@ -91,7 +90,7 @@ if ($_POST) {
|
||||
$core = new Core();
|
||||
$database = new Database();
|
||||
|
||||
if ($_POST['database_check'] == true) {
|
||||
if ($_POST['database_check'] ?? false == true) {
|
||||
|
||||
$result = $database->database_check($_POST);
|
||||
echo $result;
|
||||
@@ -1030,4 +1029,4 @@ global $wavelog_url;
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user