aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/includes/utils.php
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-10-24 17:29:46 +0200
committerArmand Philippot <git@armandphilippot.com>2021-10-24 17:29:46 +0200
commit81ded97093d37011acec670568a15658b8494fb5 (patch)
treebe8f9265f3bee9773eaaa3fb7855557958822ca3 /htdocs/includes/utils.php
parentbdd33464e704d9f7fdd2f751defae65fa784c9b0 (diff)
chore: convert index to html file instead of php file
I need to translate some strings in a JS file. So instead of dealing with two way to translate the whole app I think it is easier to stick with a single way.
Diffstat (limited to 'htdocs/includes/utils.php')
-rw-r--r--htdocs/includes/utils.php31
1 files changed, 0 insertions, 31 deletions
diff --git a/htdocs/includes/utils.php b/htdocs/includes/utils.php
deleted file mode 100644
index 8b661d7..0000000
--- a/htdocs/includes/utils.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * Utilities for demo.armandphilippot.com
- *
- * @package DemoArmandphilippotCom
- * @author Armand Philippot <contact@armandphilippot.com>
- * @copyright 2021 Armand Philippot
- * @license http://www.opensource.org/licenses/mit-license.php MIT
- * @link https://demo.armandphilippot.com/
- * @since 1.0.0
- */
-
-/**
- * Get current environment defined in .env file.
- *
- * @since 1.0.0
- *
- * @return string Current env or empty string.
- */
-function dap_get_current_env()
-{
- if (file_exists(__DIR__ . '/vendor/autoload.php')) {
- require_once __DIR__ . '/vendor/autoload.php';
- $dap_dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
- $dap_dotenv->safeLoad();
- $dap_current_env = $_ENV['WP_THEME_ENV'];
- return $dap_current_env;
- } else {
- return '';
- }
-}