From: Craig Andrews Date: Wed, 18 Aug 2010 17:33:52 +0000 (-0400) Subject: Use mhash from Compat if mhash isn't available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab89df00942fe853ba47f123de1884c708ff0645;p=quix0rs-gnu-social.git Use mhash from Compat if mhash isn't available --- diff --git a/plugins/Msn/MsnPlugin.php b/plugins/Msn/MsnPlugin.php index 9db3f7763b..9e0b76d327 100644 --- a/plugins/Msn/MsnPlugin.php +++ b/plugins/Msn/MsnPlugin.php @@ -192,6 +192,9 @@ class MsnPlugin extends ImPlugin { if (!isset($this->nickname)) { throw new Exception("Must specify a nickname"); } + if (!function_exists('mhash')) { + require_once(INSTALLDIR.'/plugins/Msn/extlib/compat/mhash.php'); + } return true; }