Tim Fry преди 1 година
родител
ревизия
51db491c55
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      resources/dashboard/maintenance.php

+ 7 - 0
resources/dashboard/maintenance.php

@@ -3,6 +3,13 @@
 //includes files
 	require_once dirname(__DIR__, 4) . "/resources/require.php";
 
+//check for extra functions
+	if (!function_exists('has_trait')) {
+		if (file_exists(dirname(__DIR__) . '/functions.php')) {
+			require_once dirname(__DIR__) . '/functions.php';
+		}
+	}
+
 //connect to the database
 	if (!isset($database)) {
 		$database = new database;