Просмотр исходного кода

Missing dependencies. Reported by Hans Spaans (#1512557)

tokul 19 лет назад
Родитель
Сommit
f582793ab8
1 измененных файлов с 12 добавлено и 4 удалено
  1. 12 4
      src/vcard.php

+ 12 - 4
src/vcard.php

@@ -17,10 +17,18 @@
 require('../include/init.php');
 
 /* SquirrelMail required files. */
-require_once(SM_PATH . 'functions/mime.php');
-require_once(SM_PATH . 'functions/url_parser.php');
-require_once(SM_PATH . 'functions/imap_general.php');
-require_once(SM_PATH . 'functions/imap_messages.php');
+
+/** imap functions depend on date functions */
+include_once(SM_PATH . 'functions/date.php');
+/** form functions */
+include_once(SM_PATH . 'functions/forms.php');
+/** mime decoding */
+include_once(SM_PATH . 'functions/mime.php');
+/** url parser */
+include_once(SM_PATH . 'functions/url_parser.php');
+/** imap functions used to retrieve vcard */
+include_once(SM_PATH . 'functions/imap_general.php');
+include_once(SM_PATH . 'functions/imap_messages.php');
 
 /* globals */
 sqgetGlobalVar('username', $username, SQ_SESSION);