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
80fbd33d
Commit
80fbd33d
authored
Dec 03, 2013
by
Jennifer Hodgdon
Browse files
Issue
#2145077
by TR, longwave: Fix about a zillion spelling errors, mostly in comments
parent
3caa9d60
Changes
71
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
80fbd33d
...
...
@@ -2264,7 +2264,7 @@ function drupal_valid_test_ua($new_prefix = NULL) {
// The file properties add more entropy not easily accessible to others.
$key
=
drupal_get_hash_salt
()
.
filectime
(
__FILE__
)
.
fileinode
(
__FILE__
);
$time_diff
=
REQUEST_TIME
-
$time
;
// We cant use Crypt::hmacBase64() yet because this can be called in very
// We can
'
t use Crypt::hmacBase64() yet because this can be called in very
// early bootstrap when autoloader has not been initialized yet.
$test_hmac
=
base64_encode
(
hash_hmac
(
'sha256'
,
$check_string
,
$key
,
TRUE
));
$test_hmac
=
strtr
(
$test_hmac
,
array
(
'+'
=>
'-'
,
'/'
=>
'_'
,
'='
=>
''
));
...
...
core/includes/common.inc
View file @
80fbd33d
...
...
@@ -624,7 +624,7 @@ function valid_url($url, $absolute = FALSE) {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occur
r
ed, or FALSE otherwise.
*
* @deprecated as of Drupal 8.0. Use
* \Drupal\Component\Utility\Number::validStep() directly instead
...
...
core/includes/install.core.inc
View file @
80fbd33d
...
...
@@ -1670,7 +1670,7 @@ function install_select_language_form($form, &$form_state, $files = array()) {
*
* @return string
* A themed status report, or an exception if there are requirement errors.
* Upon successful
l
download the page is reloaded and no output is returned.
* Upon successful download the page is reloaded and no output is returned.
*/
function
install_download_translation
(
&
$install_state
)
{
// Check whether all conditions are met to download. Download the translation
...
...
@@ -1680,7 +1680,7 @@ function install_download_translation(&$install_state) {
return
$output
;
}
// The download was successful
l
, reload the page in the new lanagage.
// The download was successful, reload the page in the new lanagage.
install_goto
(
install_redirect_url
(
$install_state
));
}
...
...
@@ -2205,7 +2205,7 @@ function install_finished(&$install_state) {
// Will also trigger indexing of profile-supplied content or feeds.
drupal_cron_run
();
// Save a snapshot of the intially installed configuration.
// Save a snapshot of the in
i
tially installed configuration.
$active
=
drupal_container
()
->
get
(
'config.storage'
);
$snapshot
=
drupal_container
()
->
get
(
'config.storage.snapshot'
);
config_import_create_snapshot
(
$active
,
$snapshot
);
...
...
core/lib/Drupal/Component/Annotation/Plugin.php
View file @
80fbd33d
...
...
@@ -23,7 +23,7 @@
class
Plugin
implements
AnnotationInterface
{
/**
* The plugin definiton read from the class annotation.
* The plugin definit
i
on read from the class annotation.
*
* @var array
*/
...
...
core/lib/Drupal/Component/Gettext/PoStreamReader.php
View file @
80fbd33d
...
...
@@ -247,11 +247,11 @@ private function readHeader() {
* this line ends the current item, it is saved with setItemFromArray() with
* data from $this->_current_item.
*
* An internal state machine is maintained in this reader using
$this->_context
* as the reading state. PO items are inbetween COMMENT
states (when items have
* at least one line or comment inbetween them
or indicated by MSGSTR
or
* MSGSTR_ARR followed immediately by an MSGID or
MSGCTXT (when items closely
* follow each other).
* An internal state machine is maintained in this reader using
*
$this->_context
as the reading state. PO items are in
between COMMENT
*
states (when items have
at least one line or comment in
between them
)
or
*
indicated by MSGSTR or
MSGSTR_ARR followed immediately by an MSGID or
*
MSGCTXT (when items closely
follow each other).
*
* @return
* FALSE if an error was logged, NULL otherwise. The errors are considered
...
...
core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php
View file @
80fbd33d
...
...
@@ -9,7 +9,7 @@
/**
* Plugin interface for providing some metadata inspection.
*
* This interface provides some simple tools for code rec
i
eving a plugin to
* This interface provides some simple tools for code rece
i
ving a plugin to
* interact with the plugin system.
*/
interface
PluginInspectionInterface
{
...
...
core/lib/Drupal/Component/Utility/Number.php
View file @
80fbd33d
...
...
@@ -28,7 +28,7 @@ class Number {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occur
r
ed, or FALSE otherwise.
*
* @see http://opensource.apple.com/source/WebCore/WebCore-1298/html/NumberInputType.cpp
*/
...
...
core/lib/Drupal/Component/Utility/Unicode.php
View file @
80fbd33d
...
...
@@ -91,14 +91,14 @@ class Unicode {
const
STATUS_ERROR
=
-
1
;
/**
* Holds the multibyte capabilities of the current enviroment.
* Holds the multibyte capabilities of the current enviro
n
ment.
*
* @var int
*/
protected
static
$status
=
0
;
/**
* Get the current status of unicode/multibyte support on this enviroment.
* Get the current status of unicode/multibyte support on this enviro
n
ment.
*
* @return int
* The status of multibyte support. It can be one of:
...
...
@@ -107,14 +107,14 @@ class Unicode {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occur
r
ed. No unicode support.
*/
public
static
function
getStatus
()
{
return
static
::
$status
;
}
/**
* Sets the value for multibyte support status for the current enviroment.
* Sets the value for multibyte support status for the current enviro
n
ment.
*
* The following status keys are supported:
* - \Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE
...
...
@@ -122,7 +122,7 @@ public static function getStatus() {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occur
r
ed. No unicode support.
*
* @param int $status
* The new status of multibyte support.
...
...
core/lib/Drupal/Component/Utility/Url.php
View file @
80fbd33d
...
...
@@ -232,8 +232,8 @@ public static function externalIsLocal($url, $base_url) {
}
else
{
// When comparing base paths, we need a trailing slash to make sure a
// partial URL match isn't occuring. Since base_path() always returns
with
// a trailing slash, we don't need to add the trailing slash here.
// partial URL match isn't occur
r
ing. Since base_path() always returns
//
with
a trailing slash, we don't need to add the trailing slash here.
return
(
$url_parts
[
'host'
]
==
$base_host
&&
stripos
(
$url_parts
[
'path'
],
$base_url
)
===
0
);
}
}
...
...
core/lib/Drupal/Core/Asset/CssOptimizer.php
View file @
80fbd33d
...
...
@@ -110,7 +110,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
$content
=
$this
->
processCss
(
$contents
,
$_optimize
);
}
// Restore the parent base path as the file and its childen are processed.
// Restore the parent base path as the file and its child
r
en are processed.
$basepath
=
$parent_base_path
;
return
$content
;
}
...
...
core/lib/Drupal/Core/Controller/ExceptionController.php
View file @
80fbd33d
...
...
@@ -268,7 +268,7 @@ public function on500Html(FlattenException $exception, Request $request) {
}
/**
* Processes an AccessDenied exception that occured on a JSON request.
* Processes an AccessDenied exception that occur
r
ed on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
...
...
@@ -282,7 +282,7 @@ public function on403Json(FlattenException $exception, Request $request) {
}
/**
* Processes a NotFound exception that occured on a JSON request.
* Processes a NotFound exception that occur
r
ed on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
...
...
@@ -296,7 +296,7 @@ public function on404Json(FlattenException $exception, Request $request) {
}
/**
* Processes a MethodNotAllowed exception that occured on a JSON request.
* Processes a MethodNotAllowed exception that occur
r
ed on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
...
...
core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
View file @
80fbd33d
...
...
@@ -169,7 +169,7 @@ public function addField($field, $type, $langcode) {
else
{
// ensureEntityTable() decides whether an entity property will be
// queried from the data table or the base table based on where it
// finds the property first. The data table is prefered, which is why
// finds the property first. The data table is prefer
r
ed, which is why
// it gets added before the base table.
$entity_tables
=
array
();
if
(
isset
(
$entity_info
[
'data_table'
]))
{
...
...
core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php
View file @
80fbd33d
...
...
@@ -52,7 +52,8 @@ protected function alterRoutes(RouteCollection $collection, $module) {
* The route build event.
*
* @return bool
* Returns TRUE if the variables were succesfully replaced, otherwise FALSE.
* Returns TRUE if the variables were successfully replaced, otherwise
* FALSE.
*/
public
function
onAlterRoutes
(
RouteBuildEvent
$event
)
{
$collection
=
$event
->
getRouteCollection
();
...
...
core/lib/Drupal/Core/Template/TwigEnvironment.php
View file @
80fbd33d
...
...
@@ -15,7 +15,7 @@
* Instances of this class are used to store the configuration and extensions,
* and are used to load templates from the file system or other locations.
*
* @see core\vendor\twig\twig\lib\Twig\Envi
o
rnment.php
* @see core\vendor\twig\twig\lib\Twig\Envir
o
nment.php
*/
class
TwigEnvironment
extends
\
Twig_Environment
{
protected
$cache_object
=
NULL
;
...
...
core/misc/tableheader.js
View file @
80fbd33d
...
...
@@ -15,7 +15,7 @@ function scrollValue(position) {
return
document
.
documentElement
[
position
]
||
document
.
body
[
position
];
}
// Select and initilize sticky table headers.
// Select and initi
a
lize sticky table headers.
function
tableHeaderInitHandler
(
e
)
{
var
$tables
=
$
(
e
.
data
.
context
).
find
(
'
table.sticky-enabled
'
).
once
(
'
tableheader
'
);
for
(
var
i
=
0
,
il
=
$tables
.
length
;
i
<
il
;
i
++
)
{
...
...
core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php
View file @
80fbd33d
...
...
@@ -37,7 +37,7 @@ public function __construct(BanIpManager $manager) {
}
/**
* Response with 403 if the visitor's IP adress is banned.
* Response with 403 if the visitor's IP ad
d
ress is banned.
*
* @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* The Event to process.
...
...
core/modules/block/lib/Drupal/block/Tests/Views/DisplayBlockTest.php
View file @
80fbd33d
...
...
@@ -144,7 +144,7 @@ protected function testDeleteBlockDisplay() {
$block_storage_controller
=
$this
->
container
->
get
(
'entity.manager'
)
->
getStorageController
(
'block'
);
// Remove the block display, so both block entities from the first view
// should both dis
s
apear.
// should both disa
p
pear.
$view
=
views_get_view
(
'test_view_block'
);
$view
->
initDisplay
();
$view
->
displayHandlers
->
remove
(
'block_1'
);
...
...
core/modules/content_translation/content_translation.module
View file @
80fbd33d
...
...
@@ -266,7 +266,7 @@ function content_translation_menu_alter(array &$items) {
}
while
(
!
empty
(
$entity_form_item
[
'type'
])
&&
$entity_form_item
[
'type'
]
==
MENU_DEFAULT_LOCAL_TASK
);
// Make the "Translate" tab follow the "Edit" one when possib
i
le.
// Make the "Translate" tab follow the "Edit" one when possible.
if
(
isset
(
$entity_form_item
[
'weight'
]))
{
$items
[
"
$path
/translations"
][
'weight'
]
=
$entity_form_item
[
'weight'
]
+
0.01
;
}
...
...
core/modules/datetime/lib/Drupal/datetime/DateHelper.php
View file @
80fbd33d
...
...
@@ -461,7 +461,7 @@ public static function daysInMonth($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, wh
c
ih means to use the current date.
* Defaults to NULL, whi
c
h means to use the current date.
*
* @return int
* The number of days in the year.
...
...
@@ -506,7 +506,7 @@ public static function dayOfWeek($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, wh
c
ih means use the current date.
* Defaults to NULL, whi
c
h means use the current date.
* @param string $abbr
* (optional) Whether to return the abbreviated name for that day.
* Defaults to TRUE.
...
...
core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php
View file @
80fbd33d
...
...
@@ -24,7 +24,7 @@ class DbLogTest extends WebTestBase {
public
static
$modules
=
array
(
'dblog'
,
'node'
,
'forum'
,
'help'
);
/**
* A user with some relev
e
nt administrative permissions.
* A user with some relev
a
nt administrative permissions.
*
* @var object
*/
...
...
Prev
1
2
3
4
Next
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