Cleanup most of the DIY extension detection/dl() code into nice clean wfDl()
[lhc/web/wiklou.git] / includes / db / DatabaseMysql.php
index a08b694..68a7fee 100644 (file)
@@ -26,9 +26,7 @@ class DatabaseMysql extends DatabaseBase {
 
                # Test for missing mysql.so
                # First try to load it
-               if (!@extension_loaded('mysql')) {
-                       @dl('mysql.so');
-               }
+               wfDl( 'mysql' );
 
                # Fail now
                # Otherwise we get a suppressed fatal error, which is very hard to track down