-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize.php
More file actions
40 lines (34 loc) · 1009 Bytes
/
Copy pathinitialize.php
File metadata and controls
40 lines (34 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
declare(strict_types=1);
/**
* @package Subway
* @version 0.1.0
* @authors Kant (Aldus)
* @license CC BY-SA 4.0
* @license_terms https://creativecommons.org/licenses/by-sa/4.0/
* @platform WBCE 1.6.x
* @requirements PHP 8.4.x (8.3 recommented)
*/
if (!defined('WB_PATH'))
{
header('Location: ../../index.php');
die();
}
/**
* [1] Just to make sure the WBCE autoloader will find the module classes
* (As this one line is missing in the "inizialize" file of the root.)
*/
WbAuto::AddDir(WB_PATH."/modules/");
/**
* [1.1] Just to make sure the WBCE autoloader will find the frontend-template
* classes and also the theme ones.
* (As this one line is also missing in the "inizialize" file of the root.)
*/
WbAuto::AddDir(WB_PATH."/templates/");
/**
* [2] Backwards for the "L_" processTranslation by Stefek.
*/
if (!defined('TWIG_SHOW_MISSING_LANG_STRINGS'))
{
define('TWIG_SHOW_MISSING_LANG_STRINGS', false);
}