Explorar o código

Put a check in to be sure SM_PATH wasn't already defined. Seemed safer than just deleting the define altogether..

tassium %!s(int64=22) %!d(string=hai) anos
pai
achega
3bfef4f883
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      plugins/abook_take/setup.php

+ 3 - 1
plugins/abook_take/setup.php

@@ -1,7 +1,9 @@
 <?php
 
 /* Path for SquirrelMail required files. */
-define('SM_PATH','../../');
+if (!defined('SM_PATH'))  {
+	define('SM_PATH','../../');
+}
 
 /* SquirrelMail required files. */
 require_once(SM_PATH . 'functions/url_parser.php');