File YOURLS-configpath.patch of Package YOURLS

diff -Pdpru YOURLS-1.8.1.orig/includes/load-yourls.php YOURLS-1.8.1/includes/load-yourls.php
--- YOURLS-1.8.1.orig/includes/load-yourls.php	2021-03-06 19:09:22.000000000 +0100
+++ YOURLS-1.8.1/includes/load-yourls.php	2021-05-13 10:20:01.151363637 +0200
@@ -14,9 +14,13 @@ $config = new \YOURLS\Config\Config;
  * are registered in the global scope. If this require is moved in \YOURLS\Config\Config, $yourls_user_passwords for
  * instance isn't registered.
  */
-if (!defined('YOURLS_CONFIGFILE')) {
-    define('YOURLS_CONFIGFILE', $config->find_config());
-}
+/*
+ * if (!defined('YOURLS_CONFIGFILE')) {
+ *     define('YOURLS_CONFIGFILE', $config->find_config());
+ * }
+ */
+define( 'YOURLS_CONFIGFILE', '/etc/YOURLS/config.php' );
+
 require_once YOURLS_CONFIGFILE;
 $config->define_core_constants();
 
openSUSE Build Service is sponsored by