Fix a bunch of plugins to cope with moved load_prefs/validate files.
[squirrelmail.git] / plugins / squirrelspell / sqspell_interface.php
index 6ea1f0d94ca6c785417518c9f37ee1caa9651b23..b8f4273050e91ef116a00bd9c700e2aa885e62ee 100644 (file)
@@ -28,9 +28,13 @@ $SQSPELL_CRYPTO=FALSE;
 /**
  * Load the stuff needed from squirrelmail
  */
+
 chdir('..');
-require_once('../src/validate.php');
-require_once('../src/load_prefs.php');
+define('SM_PATH','../');
+
+/* SquirrelMail required files. */
+require_once(SM_PATH . 'include/validate.php');
+require_once(SM_PATH . 'include/load_prefs.php');
 require_once("$SQSPELL_DIR/sqspell_config.php");
 require_once("$SQSPELL_DIR/sqspell_functions.php");