Fix include errors

This commit is contained in:
2026-05-08 11:55:32 +02:00
parent 1004ead899
commit 677eabdebf
3 changed files with 9 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ header('Content-Type: text/xml; charset=utf-8');
header('Content-Disposition: attachment; filename="go-form-' . sanitize_title($form_name) . '-export-macmahon.xml"');
$output = fopen('php://output', 'w');
include_once 'mcmahon-help.php';
include_once __DIR__ . '/mcmahon-help.php';
fwrite($output, $mcmahonfirst);

View File

@@ -84,7 +84,7 @@ function go_form_render_entries_table($entries, $show_admin = false)
{
global $ranks;
include "templates/table.php";
include __DIR__ . "/templates/table.php";
}
// ========== Form Handling ==========
@@ -140,7 +140,7 @@ function go_form_shortcode($atts)
$form = go_form_get_form_by_id($form_id);
ob_start();
if ($form) {
include 'templates/form-shortcode.php';
include __DIR__ . '/templates/form-shortcode.php';
} else {
echo '<p>WRONG FORM ID</p>';
}
@@ -211,14 +211,14 @@ add_action('admin_post_go_form_delete_form', 'go_form_delete_form');
function go_form_export_csv()
{
include_once 'export/csv.php';
include_once __DIR__ . '/export/csv.php';
exit;
}
add_action('admin_post_go_form_export_csv', 'go_form_export_csv');
function go_form_export_pairgoth()
{
include_once 'export/pairgoth.php';
include_once __DIR__ . '/export/pairgoth.php';
exit;
}
add_action('admin_post_go_form_export_pairgoth', 'go_form_export_pairgoth');
@@ -226,7 +226,7 @@ add_action('admin_post_go_form_export_pairgoth', 'go_form_export_pairgoth');
function go_form_export_opengotha()
{
global $ranks;
include_once 'export/opengotha.php';
include_once __DIR__ . '/export/opengotha.php';
exit;
}
add_action('admin_post_go_form_export_opengotha', 'go_form_export_opengotha');
@@ -234,7 +234,7 @@ add_action('admin_post_go_form_export_opengotha', 'go_form_export_opengotha');
function go_form_export_mcmahon()
{
global $ranks;
include_once 'export/mcmahon.php';
include_once __DIR__ . '/export/mcmahon.php';
exit;
}
add_action('admin_post_go_form_export_mcmahon', 'go_form_export_mcmahon');
@@ -259,5 +259,5 @@ function action_button($action, $name, $confirm_massage, $value_one)
function go_form_settings_page()
{
include_once 'templates/settings-page.php';
include_once __DIR__ . '/templates/settings-page.php';
}

View File

@@ -10,4 +10,4 @@
if (!defined('ABSPATH'))
exit;
include_once "go-form-plugin/go-form-plugin.php";
require_once "go-form-plugin/go-form-plugin.php";