summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnAlbin2013-02-01 15:54:21 (GMT)
committerJohnAlbin2013-02-01 15:54:21 (GMT)
commita616e0ef0b62e2b8dd3a27782e299669abb2a6c3 (patch)
tree8dcf1149296eeba1c8fab417f48eb0cb40a04e9b
parentb60c0844074f5736fc2c1ddf62b60aaf0997679a (diff)
Issue #1905006: OCD-required replacement of tab characters with 2 spaces.5.x-1.x
-rw-r--r--template-subtheme.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/template-subtheme.php b/template-subtheme.php
index 0499eaf..2734324 100644
--- a/template-subtheme.php
+++ b/template-subtheme.php
@@ -112,8 +112,8 @@ function _zen_default($hook, $variables, $suggestions = array(), $extension = '.
*/
function _zen_hook($hook) {
if (!function_exists("_phptemplate_$hook")) {
- // Only create a function if $hook contains letters and underscores.
- if (!preg_match('/\W/', $hook)) {
+ // Only create a function if $hook contains letters and underscores.
+ if (!preg_match('/\W/', $hook)) {
$declaration = <<<EOD
function _phptemplate_$hook(\$vars, \$suggestions = array()) {
return _zen_default('$hook', \$vars, \$suggestions);
@@ -125,8 +125,8 @@ EOD;
// Since we can't create an override function, we simply add a template
// suggestion that contains the sub-theme directory.
global $theme_key;
- $vars['template_file'] = "$theme_key/$hook";
- }
+ $vars['template_file'] = "$theme_key/$hook";
+ }
}
}