Commit 608d53a1 authored by catch's avatar catch
Browse files

Issue #2851394 by GoZ, hgunicamp, oknate, jungle, wolffereast, tameeshb,...

Issue #2851394 by GoZ, hgunicamp, oknate, jungle, wolffereast, tameeshb, mmatsoo, ridhimaabrol24, jofitz, swarad07, tanc, shaktik, dimaro, shashikant_chauhan, MerryHamster, quietone, nitesh624, martin_q, boaloysius, gaurav.kapoor, nitvirus, ankithashetty, Munavijayalakshmi, kostyashupenko, leolando.tan, amit.drupal, ravi.shankar, akashkrishnan01, Swapnil_Kotwal, Saviktor, mrinalini9, anmolgoyal74, Venkatesh Rajan.J, shimpy, lomasr, Dinesh18, shubham.prakash, mahtab_alam, markdorison, cilefen, longwave, bleen, xjm, alexpott, gmaltoni: Fix grammar 'a' to 'an' when necessary

(cherry picked from commit 1d6e7e25)
parent a2dd35a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ function drupal_find_theme_functions($cache, $prefixes) {
      // Find theme functions that implement possible "suggestion" variants of
      // registered theme hooks and add those as new registered theme hooks.
      // The 'pattern' key defines a common prefix that all suggestions must
      // start with. The default is the name of the hook followed by '__'. An
      // start with. The default is the name of the hook followed by '__'. A
      // 'base hook' key is added to each entry made for a found suggestion,
      // so that common functionality can be implemented for all suggestions of
      // the same base hook. To keep things simple, deep hierarchy of
+1 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ class InvalidPluginDefinitionException extends PluginException {
  protected $pluginId;

  /**
   * Constructs a InvalidPluginDefinitionException.
   * Constructs an InvalidPluginDefinitionException.
   *
   * For the remaining parameters see \Exception.
   *
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
class PluginNotFoundException extends PluginException {

  /**
   * Construct an PluginNotFoundException exception.
   * Construct a PluginNotFoundException exception.
   *
   * For the remaining parameters see \Exception.
   *
+2 −2
Original line number Diff line number Diff line
@@ -45,8 +45,8 @@ class Html {
   *   <command> tag anymore.
   *  See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/command.
   * - The 'manifest' attribute is omitted because it only exists for the <html>
   *   tag. That tag only makes sense in a HTML-served-as-HTML context, in which
   *   case relative URLs are guaranteed to work.
   *   tag. That tag only makes sense in an HTML-served-as-HTML context, in
   *   which case relative URLs are guaranteed to work.
   *
   * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
   * @see https://stackoverflow.com/questions/2725156/complete-list-of-html-tag-attributes-which-have-a-url-value
+2 −2
Original line number Diff line number Diff line
@@ -242,14 +242,14 @@ public static function isExternal($path) {
   *   TRUE if the URL has the same domain and base path.
   *
   * @throws \InvalidArgumentException
   *   Exception thrown when a either $url or $bath_url are not fully qualified.
   *   Exception thrown when either $url or $base_url are not fully qualified.
   */
  public static function externalIsLocal($url, $base_url) {
    // Some browsers treat \ as / so normalize to forward slashes.
    $url = str_replace('\\', '/', $url);

    // Leading control characters may be ignored or mishandled by browsers, so
    // assume such a path may lead to an non-local location. The \p{C} character
    // assume such a path may lead to a non-local location. The \p{C} character
    // class matches all UTF-8 control, unassigned, and private characters.
    if (preg_match('/^\p{C}/u', $url) !== 0) {
      return FALSE;
Loading