]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use mhash from Compat if mhash isn't available
authorCraig Andrews <candrews@integralblue.com>
Wed, 18 Aug 2010 17:33:52 +0000 (13:33 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 18 Aug 2010 17:33:52 +0000 (13:33 -0400)
plugins/Msn/MsnPlugin.php

index 9db3f7763b76591473d80374436297976578da22..9e0b76d327bdaefddf2ac09caaf5e3892e2b97b9 100644 (file)
@@ -192,6 +192,9 @@ class MsnPlugin extends ImPlugin {
         if (!isset($this->nickname)) {\r
             throw new Exception("Must specify a nickname");\r
         }\r
+        if (!function_exists('mhash')) {\r
+            require_once(INSTALLDIR.'/plugins/Msn/extlib/compat/mhash.php');\r
+        }\r
 \r
         return true;\r
     }\r