]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Fix some bad mass replaces
authorBram Matthys <redacted>
Tue, 11 Apr 2023 18:54:26 +0000 (20:54 +0200)
committerBram Matthys <redacted>
Tue, 11 Apr 2023 18:54:26 +0000 (20:54 +0200)
Classes/class-log.php
config/config.php.sample

index 080d0da9a3fc8e2a662d3086580ae78312eb9675..7c64949cad2c75207a79b43138f9cd89ca540d50 100644 (file)
@@ -23,7 +23,7 @@ class Log
        {
                foreach($string as $str)
                {
-                       if (defined('get_config("debug")') && get_config("debug")) {
+                       if (get_config("debug")) {
                                highlight_string(var_export($str, true));
                        }
                }
index 737831673740f42db627e4e41e106c296c61c173..91e72b959e51d0054a833bb46e047c1b2b7ee4a9 100644 (file)
@@ -50,9 +50,7 @@ $config["debug"] = false;
 /**
  * Your list of plugins:
  */
-define(
-       'get_config("plugins")', [
-
+$config["plugins"] = [
                /*  This is where you should type the name(s) of your plugins. 
                 *  Uncomment the following line to view the live example
                */
@@ -72,7 +70,7 @@ define(
   * SQL IP address or hostname
   * You may specify a unix domain socket directory address
   * E.g:
-  *     define('get_config("mysql::host")', "/path/to/unix/domain/socket");
+  *     $config["mysql"]["host"] = "/path/to/unix/domain/socket";
   *
   * Path to unix socket MUST start with a slash "/"
   */