Changeset 7508 for trunk/wp-includes/functions.php
- Timestamp:
- 03/25/2008 12:22:37 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r7478 r7508 1726 1726 * 1727 1727 * @param string $mod e.g. mod_rewrite 1728 * @param bool $default The default return value if the module is not found 1728 1729 * @return bool 1729 1730 */ 1730 function apache_mod_loaded($mod ) {1731 function apache_mod_loaded($mod, $default = false) { 1731 1732 global $is_apache; 1732 1733 … … 1738 1739 if ( in_array($mod, $mods) ) 1739 1740 return true; 1740 } else {1741 } elseif ( function_exists('phpinfo') ) { 1741 1742 ob_start(); 1742 1743 phpinfo(8); … … 1745 1746 return true; 1746 1747 } 1747 return false;1748 return $default; 1748 1749 } 1749 1750
Note: See TracChangeset
for help on using the changeset viewer.