From 1fcbeb79e32ae5caee0b8f291ba65b5eaa6edcae Mon Sep 17 00:00:00 2001 From: Ben Word Date: Tue, 10 Apr 2012 19:39:05 -0600 Subject: [PATCH] Fix #357 - H5BP htaccess missing on older PHP installs --- inc/roots-htaccess.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/roots-htaccess.php b/inc/roots-htaccess.php index f408dbc..bf414a3 100644 --- a/inc/roots-htaccess.php +++ b/inc/roots-htaccess.php @@ -70,7 +70,7 @@ if (stristr($_SERVER['SERVER_SOFTWARE'], 'apache') !== false) { if ($mod_rewrite_enabled) { $h5bp_rules = extract_from_markers($htaccess_file, 'HTML5 Boilerplate'); if ($h5bp_rules === array()) { - $filename = __DIR__ . '/h5bp-htaccess'; + $filename = dirname(__FILE__) . '/h5bp-htaccess'; return insert_with_markers($htaccess_file, 'HTML5 Boilerplate', extract_from_markers($filename, 'HTML5 Boilerplate')); } }