Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove extra space in HtmlHelper radio tag #382

Merged
merged 1 commit into from

2 participants

@shama

There is an extra space added between attributes when using the radio tag.

@markstory markstory merged commit ab2cf59 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 18, 2011
  1. @shama
This page is out of date. Refresh to see the latest.
View
2  lib/Cake/View/Helper/CacheHelper.php
@@ -281,7 +281,7 @@ protected function _writeFile($content, $timestamp, $useCallbacks = false) {
$controller = new ' . $this->_View->name . 'Controller($request, $response);
$controller->plugin = $this->plugin = \'' . $this->_View->plugin . '\';
$controller->helpers = $this->helpers = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->helpers)) . '\'));
- $controller->layout = $this->layout = \'' . $this->_View->layout. '\';
+ $controller->layout = $this->layout = \'' . $this->_View->layout . '\';
$controller->theme = $this->theme = \'' . $this->_View->theme . '\';
$controller->viewVars = unserialize(base64_decode(\'' . base64_encode(serialize($this->_View->viewVars)) . '\'));
Router::setRequestInfo($controller->request);
View
8 lib/Cake/View/Helper/HtmlHelper.php
@@ -46,7 +46,7 @@ class HtmlHelper extends AppHelper {
'hidden' => '<input type="hidden" name="%s"%s/>',
'checkbox' => '<input type="checkbox" name="%s" %s/>',
'checkboxmultiple' => '<input type="checkbox" name="%s[]"%s />',
- 'radio' => '<input type="radio" name="%s" id="%s" %s />%s',
+ 'radio' => '<input type="radio" name="%s" id="%s"%s />%s',
'selectstart' => '<select name="%s"%s>',
'selectmultiplestart' => '<select name="%s[]"%s>',
'selectempty' => '<option value=""%s>&nbsp;</option>',
@@ -235,9 +235,9 @@ public function meta($type, $url = null, $options = array()) {
if (!is_array($type)) {
$types = array(
- 'rss' => array('type' => 'application/rss+xml', 'rel' => 'alternate', 'title' => $type, 'link' => $url),
- 'atom' => array('type' => 'application/atom+xml', 'title' => $type, 'link' => $url),
- 'icon' => array('type' => 'image/x-icon', 'rel' => 'icon', 'link' => $url),
+ 'rss' => array('type' => 'application/rss+xml', 'rel' => 'alternate', 'title' => $type, 'link' => $url),
+ 'atom' => array('type' => 'application/atom+xml', 'title' => $type, 'link' => $url),
+ 'icon' => array('type' => 'image/x-icon', 'rel' => 'icon', 'link' => $url),
'keywords' => array('name' => 'keywords', 'content' => $url),
'description' => array('name' => 'description', 'content' => $url),
);
Something went wrong with that request. Please try again.