Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
aec10a8c
Commit
aec10a8c
authored
Mar 06, 2010
by
Dries Buytaert
Browse files
- Patch
#734146
by scor: white-space clean-up.
parent
fe04b8f5
Changes
14
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
aec10a8c
...
...
@@ -3014,7 +3014,7 @@ function drupal_pre_render_styles($elements) {
// IE's limit of 31 total CSS inclusion tags.
// - The group contains items not eligible for aggregation (their
// 'preprocess' flag has been set to FALSE): in this case, output a LINK
// tag for each file.
// tag for each file.
case
'file'
:
// The group has been aggregated into a single file: output a LINK tag
// for the aggregate file.
...
...
@@ -4634,7 +4634,7 @@ function drupal_set_page_content($content = NULL) {
* containing an expression for Internet Explorer to evaluate as part of a
* conditional comment. For example, this can be set to 'lt IE 7' for the
* element to be rendered in Internet Explorer 6, but not in Internet
* Explorer 7 or higher. Defaults to TRUE.
* Explorer 7 or higher. Defaults to TRUE.
* - '!IE': If FALSE, the element is not rendered by browsers other than
* Internet Explorer. If TRUE, the element is rendered by those browsers.
* Defaults to TRUE.
...
...
includes/database/pgsql/schema.inc
View file @
aec10a8c
...
...
@@ -346,7 +346,7 @@ public function dropField($table, $field) {
if
(
!
$this
->
columnExists
(
$table
,
$field
))
{
return
FALSE
;
}
$this
->
connection
->
query
(
'ALTER TABLE {'
.
$table
.
'} DROP COLUMN "'
.
$field
.
'"'
);
return
TRUE
;
}
...
...
modules/filter/filter.module
View file @
aec10a8c
...
...
@@ -873,7 +873,7 @@ function filter_dom_serialize($dom_document) {
foreach
(
$body_node
->
getElementsByTagName
(
'style'
)
as
$node
)
{
filter_dom_serialize_escape_cdata_element
(
$dom_document
,
$node
,
'/*'
,
'*/'
);
}
foreach
(
$body_node
->
childNodes
as
$child_node
)
{
$body_content
.
=
$dom_document
->
saveXML
(
$child_node
);
}
...
...
@@ -882,14 +882,14 @@ function filter_dom_serialize($dom_document) {
/**
* Adds comments around the <!CDATA section in a dom element.
*
*
* DOMDocument::loadHTML in filter_dom_load() makes CDATA sections from the
* contents of inline script and style tags. This can cause HTML 4 browsers to
* throw exceptions.
*
*
* This function attempts to solve the problem by creating a DocumentFragment
* and immitating the behavior in drupal_get_js(), commenting the CDATA tag.
*
*
* @param $dom_document
* The DOMDocument containing the $dom_element.
* @param $dom_element
...
...
modules/filter/filter.test
View file @
aec10a8c
...
...
@@ -1087,10 +1087,10 @@ alert("test")
//--><!]]>
</script></p>'
,
t
(
'HTML corrector -- CDATA added to a nested script element'
));
$f
=
_filter_htmlcorrector
(
'<p><style> /* Styling */ body {color:red}
</style></p>'
);
$f
=
_filter_htmlcorrector
(
'<p><style> /* Styling */ body {color:red}</style></p>'
);
$this
->
assertEqual
(
$f
,
'<p><style>
<!--/*--><![CDATA[/* ><!--*/
/* Styling */ body {color:red}
/* Styling */ body {color:red}
/*--><!]]>*/
</style></p>'
,
t
(
'HTML corrector -- CDATA added to a style element.'
));
}
...
...
modules/node/node.api.php
View file @
aec10a8c
...
...
@@ -97,7 +97,7 @@
* above):
* - hook_prepare() (node-type-specific)
* - hook_node_prepare() (all); if translation.module is enabled, this will
* also invoke hook_node_prepare_translation() on all modules.
* also invoke hook_node_prepare_translation() on all modules.
* - hook_form() (node-type-specific)
* - field_attach_form()
* - Validating a node during editing form submit (calling
...
...
modules/node/node.test
View file @
aec10a8c
...
...
@@ -1509,7 +1509,7 @@ class NodeQueryAlter extends DrupalWebTestCase {
* Verifies that a non-standard table alias can be used, and that a
* user with node access can view the nodes.
*/
function
testNodeQueryAlterLowLevelWithAccess
()
{
function
testNodeQueryAlterLowLevelWithAccess
()
{
// User with access should be able to view 4 nodes.
try
{
$query
=
db_select
(
'node'
,
'mytab'
)
...
...
modules/openid/openid.inc
View file @
aec10a8c
...
...
@@ -561,10 +561,10 @@ function _openid_get_params($str) {
* openid.[prefix].[key2] = [value2]
* ...
* @endcode
*
*
* This function extracts all the keys belonging to an extension namespace in a
* response, optionally using a fallback prefix if none is provided in the response.
*
*
* Note that you cannot assume that a given extension namespace will use the same
* prefix on the response and the request: each party may use a different prefix
* to refer to the same namespace.
...
...
modules/overlay/overlay-parent.js
View file @
aec10a8c
...
...
@@ -465,7 +465,7 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) {
$tabs
.
removeAttr
(
'
class
'
);
}
// Re-attach the behaviors we lost while copying elements from the iframe
// Re-attach the behaviors we lost while copying elements from the iframe
// document to the parent document.
Drupal
.
attachBehaviors
(
self
.
$dialogTitlebar
);
...
...
@@ -693,7 +693,7 @@ Drupal.overlay.clickHandler = function (event) {
return
;
}
// Only continue if clicked target (or one of its parents) is a link.
// Only continue if clicked target (or one of its parents) is a link.
if
(
!
$target
.
is
(
'
a
'
))
{
$target
=
$target
.
closest
(
'
a
'
);
if
(
!
$target
.
length
)
{
...
...
modules/poll/poll.test
View file @
aec10a8c
...
...
@@ -372,7 +372,7 @@ class PollVoteCheckHostname extends PollTestCase {
'vote on polls'
=>
TRUE
,
));
// Create poll.
// Create poll.
$title
=
$this
->
randomName
();
$choices
=
$this
->
_generateChoices
(
3
);
$this
->
poll_nid
=
$this
->
pollCreate
(
$title
,
$choices
,
FALSE
);
...
...
modules/shortcut/shortcut.admin.inc
View file @
aec10a8c
...
...
@@ -630,7 +630,7 @@ function shortcut_set_delete_form($form, &$form_state, $shortcut_set) {
}
$form
[
'info'
]
=
array
(
'#markup'
=>
$info
,
'#markup'
=>
$info
,
);
return
confirm_form
(
...
...
modules/simpletest/simpletest.css
View file @
aec10a8c
...
...
@@ -89,4 +89,4 @@ a.simpletest-collapse:hover {
overflow
:
visible
;
position
:
relative
;
z-index
:
1000
;
}
\ No newline at end of file
}
modules/system/system.api.php
View file @
aec10a8c
...
...
@@ -1560,7 +1560,7 @@ function hook_modules_uninstalled($modules) {
* - 'description' A string with a short description of what the wrapper does.
* - 'type' A bitmask of flags indicating what type of streams this wrapper
* will access - local or remote, readable and/or writeable, etc. Many
* shortcut constants are defined in stream_wrappers.inc.
* shortcut constants are defined in stream_wrappers.inc.
*
* @see file_get_stream_wrappers()
* @see hook_stream_wrappers_alter()
...
...
@@ -2132,7 +2132,7 @@ function hook_install() {
* Perform a single update.
*
* For each patch which requires a database change add a new hook_update_N()
* which will be called by update.php. The database updates are numbered
* which will be called by update.php. The database updates are numbered
* sequentially according to the version of Drupal you are compatible with.
*
* Schema updates should adhere to the Schema API:
...
...
modules/system/system.test
View file @
aec10a8c
...
...
@@ -1710,4 +1710,4 @@ class ShutdownFunctionsTest extends DrupalWebTestCase {
$this
->
assertText
(
t
(
'First shutdown function, arg1 : @arg1, arg2: @arg2'
,
array
(
'@arg1'
=>
$arg1
,
'@arg2'
=>
$arg2
)));
$this
->
assertText
(
t
(
'Second shutdown function, arg1 : @arg1, arg2: @arg2'
,
array
(
'@arg1'
=>
$arg1
,
'@arg2'
=>
$arg2
)));
}
}
\ No newline at end of file
}
modules/taxonomy/taxonomy.install
View file @
aec10a8c
...
...
@@ -225,7 +225,7 @@ function taxonomy_update_dependencies() {
$dependencies
[
'node'
][
7006
]
=
array
(
'taxonomy'
=>
7002
,
);
return
$dependencies
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment