r114144 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114143‎ | r114144 | r114145 >
Date:14:59, 19 March 2012
Author:reedy
Status:ok
Tags:
Comment:
Many other occurance/occurence typos
Modified paths:
  • /trunk/extensions/AbuseFilter/AbuseFilter.i18n.php (modified) (history)
  • /trunk/extensions/Arrays/Arrays.php (modified) (history)
  • /trunk/extensions/Arrays/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/Chemistry/SpecialChemicalsources.php (modified) (history)
  • /trunk/extensions/Chemistry/SpecialChemicalsources_body.php (modified) (history)
  • /trunk/extensions/Cite/Cite_body.php (modified) (history)
  • /trunk/extensions/DSMW/files/utils.php (modified) (history)
  • /trunk/extensions/DSMW/includes/SemanticFunctions.php (modified) (history)
  • /trunk/extensions/DSMW/logootComponent/logootEngine.php (modified) (history)
  • /trunk/extensions/DynamicPageList/DPL.php (modified) (history)
  • /trunk/extensions/DynamicPageList/DynamicPageListInclude.php (modified) (history)
  • /trunk/extensions/FreqPatternTagCloud/includes/computation/FrequentPatternAlgorithm.php (modified) (history)
  • /trunk/extensions/Gnuplot/Gnuplot.php (modified) (history)
  • /trunk/extensions/InlineEditor/SentenceEditor/SentenceEditor.class.php (modified) (history)
  • /trunk/extensions/LiveTranslate/includes/jquery.liveTranslate.js (modified) (history)
  • /trunk/extensions/MetaKeywords/MetaKeywords.i18n.php (modified) (history)
  • /trunk/extensions/MobileFrontend/library/WURFL/Handlers/Utils.php (modified) (history)
  • /trunk/extensions/QPoll/Excel/PEAR.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Aggregatable.php (modified) (history)
  • /trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/ValueRank/SRF_ValueRank.php (modified) (history)
  • /trunk/extensions/SimpleSecurity/SimpleSecurity_body.php (modified) (history)
  • /trunk/extensions/Sternograph/Sternograph.body.php (modified) (history)
  • /trunk/extensions/StringFunctions/StringFunctions.php (modified) (history)
  • /trunk/extensions/StringFunctionsEscaped/README (modified) (history)
  • /trunk/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php (modified) (history)
  • /trunk/extensions/Translate/TranslateUtils.php (modified) (history)
  • /trunk/extensions/TreeAndMenu/TreeAndMenu.php (modified) (history)
  • /trunk/extensions/WikiForum/WikiForum.i18n.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/Test.skeleton.php (modified) (history)

Diff [purge]

Index: trunk/extensions/WikiForum/WikiForum.i18n.php
@@ -678,7 +678,7 @@
679679 'wikiforum-save' => 'Enregistrer',
680680 'wikiforum-error-search' => 'Erreur de recherche',
681681 'wikiforum-error-search-missing-query' => 'Vous devez fournir un terme à rechercher !',
682 - 'wikiforum-search-hits' => 'Trouvé {{PLURAL:$1|une occurence|$1 occurences}}',
 682+ 'wikiforum-search-hits' => 'Trouvé {{PLURAL:$1|une occurrence|$1 occurrences}}',
683683 'wikiforum-search-thread' => 'Fil de discussion : $1',
684684 'wikiforum-thread-deleted' => 'fil de discussion supprimé',
685685 'wikiforum-topic-name' => 'Forum - $1',
Index: trunk/extensions/SemanticMediaWiki/includes/queryprinters/SMW_QP_Aggregatable.php
@@ -109,7 +109,7 @@
110110 }
111111
112112 /**
113 - * Counts all the occurances of all values in the query result,
 113+ * Counts all the occurrences of all values in the query result,
114114 * and returns an array with as key the value and as value the count.
115115 *
116116 * @since 1.7
Index: trunk/extensions/SemanticMediaWiki/languages/SMW_Messages.php
@@ -74,8 +74,8 @@
7575 'smw_paramdesc_default' => 'The text to display if there are no query results',
7676 'smw_paramdesc_searchlabel' => 'The text for the link to results',
7777 'smw_paramdesc_sep' => 'The separator for values',
78 - 'smw-paramdesc-distribution' => 'Instead of displaying all values, count their occurances, and show these.',
79 - 'smw-paramdesc-distributionsort' => 'Sort the value distribution by occurance count.',
 78+ 'smw-paramdesc-distribution' => 'Instead of displaying all values, count their occurrences, and show these.',
 79+ 'smw-paramdesc-distributionsort' => 'Sort the value distribution by occurrence count.',
8080 'smw-paramdesc-distributionlimit' => 'Limit the value distribution to the count of only some values.',
8181 'smw_paramdesc_template' => 'The name of a template with which to display the printouts',
8282 'smw_paramdesc_columns' => 'The number of columns in which to display results (default is $1)',
@@ -3770,7 +3770,7 @@
37713771 'smw_nounitsdeclared' => "Aucune unité de mesure n'a été déclarée pour cette propriété.",
37723772 'smw_novalues' => 'Aucune valeur n’a été spécifiée.',
37733773 'smw_nodatetime' => 'La date « $1 » n’a pas été comprise.',
3774 - 'smw_toomanyclosing' => 'Il semble y avoir trop d’occurences de « $1 » dans la requête.',
 3774+ 'smw_toomanyclosing' => 'Il semble y avoir trop d’occurrences de « $1 » dans la requête.',
37753775 'smw_noclosingbrackets' => 'Certains « <nowiki>[[</nowiki> » dans votre requête n’ont pas été clos par des « ]] » correspondants.',
37763776 'smw_misplacedsymbol' => 'Le symbole « $1 » a été utilisé à un endroit où il n’est pas utile.',
37773777 'smw_unexpectedpart' => 'La partie « $1 » de la requête n’a pas été comprise. Les résultats peuvent être inattendus.',
Index: trunk/extensions/StringFunctions/StringFunctions.php
@@ -43,7 +43,7 @@
4444
4545 {{#replace:value|from|to}}
4646
47 - Returns the given value with all occurences of 'from' replaced with 'to'.
 47+ Returns the given value with all occurrences of 'from' replaced with 'to'.
4848 See: http://php.net/manual/function.str-replace.php
4949
5050
Index: trunk/extensions/Chemistry/SpecialChemicalsources.php
@@ -24,8 +24,8 @@
2525 * 1) Write your own i18n file (see instructions there)
2626 * 2) copy this file to the name of your specialpage, and in that file:
2727 * 3) make the line "require_once( 'ChemFunctions.i18n.php' );" call your i18n file
28 - * 4) Replace all the occurences of the word 'chemicalsources' with the name of your specialpage
29 - * 5) Replace every occurence of the word ChemFunctions with your chosen prefix from your i18n.
 28+ * 4) Replace all the occurrences of the word 'chemicalsources' with the name of your specialpage
 29+ * 5) Replace every occurrence of the word ChemFunctions with your chosen prefix from your i18n.
3030 * 6) rewrite the function TransposeAndCheckParams
3131 * You will get a list $Params which contains: $Params['paramname']='value'
3232 * You have to return a list which contains: $transParams['thestringtoreplaceinyourpage'] = 'withwhatitshouldbereplaced'
Index: trunk/extensions/Chemistry/SpecialChemicalsources_body.php
@@ -9,7 +9,7 @@
1010 * To write the i18n so that it functions with another listpage:
1111 * 1) copy this file to the i18n of your choice
1212 * 2) Choose your prefix (the best way, if this i18n file is called YourPrefix, then choose that as your Prefix
13 - * 3) Replace all occurences of ChemFunctions with the name of your Prefix.
 13+ * 3) Replace all occurrences of ChemFunctions with the name of your Prefix.
1414 * 4) $wgYourPrefix_Parameters should contain the names of the parameters as they can be given to your specialpage
1515 * In the ListPage you have created, the Magiccodes are then $ParameterName, so if the Parameter is called 'WhAtEvEr',
1616 * then in the ListPage $WhAtEvEr will be replaced with the value of the parameter WhAtEvEr
Index: trunk/extensions/InlineEditor/SentenceEditor/SentenceEditor.class.php
@@ -44,7 +44,7 @@
4545 }
4646
4747 /**
48 - * Replaces all occurences of unsupported wikitext by spaces. This is to make sure the
 48+ * Replaces all occurrences of unsupported wikitext by spaces. This is to make sure the
4949 * positions of what's left are still the same as those in the original wikitext
5050 * @param $wikitext string
5151 * @return string
@@ -97,7 +97,7 @@
9898 // split where there are at least two spaces, or a newline, or the beginning of the text
9999 $splits = preg_split( '/\s\s+|\n\s*|^/', $wikitext, -1, PREG_SPLIT_OFFSET_CAPTURE );
100100
101 - // remove small occurences
 101+ // remove small occurrences
102102 foreach ( $splits as $index => $split ) {
103103 if ( strlen( $split[0] ) < 2 ) unset( $splits[$index] );
104104 }
Index: trunk/extensions/DSMW/logootComponent/logootEngine.php
@@ -526,7 +526,7 @@
527527 return $droite;
528528 }
529529
530 - // if there is no occurence
 530+ // if there is no occurrence
531531 ksort( $arr, SORT_NUMERIC );
532532 reset( $arr );
533533 $firstElementKey = key( $arr );
Index: trunk/extensions/DSMW/files/utils.php
@@ -444,7 +444,7 @@
445445 /**
446446 * tests if the patch is remote
447447 * @param <String> $patchId
448 - * @return <int or bool> false if no occurence
 448+ * @return <int or bool> false if no occurrence
449449 */
450450 static function isRemote( $patchId ) {
451451 $serverId = DSMWSiteId::getInstance();
Index: trunk/extensions/DSMW/includes/SemanticFunctions.php
@@ -141,7 +141,7 @@
142142 // get hasPushHead Value if exists
143143 $start = "[[hasPushHead::";
144144 $val1 = strpos( $pageContent, $start );
145 - if ( $val1 !== false ) {// if there is an occurence of [[hasPushHead::
 145+ if ( $val1 !== false ) {// if there is an occurrence of [[hasPushHead::
146146 $startVal = $val1 + strlen( $start );
147147 $end = "]]";
148148 $endVal = strpos( $pageContent, $end, $startVal );
@@ -151,7 +151,7 @@
152152 $result = str_replace( $value, $CSID, $pageContent );
153153 $pageContent = $result;
154154 if ( $result == "" )return false;
155 - } else {// no occurence of [[hasPushHead:: , we add
 155+ } else {// no occurrence of [[hasPushHead:: , we add
156156 $pageContent .= ' hasPushHead: [[hasPushHead::' . $CSID . ']]';
157157 }
158158 // save update
@@ -303,7 +303,7 @@
304304 // get hasPushHead Value if exists
305305 $start = "[[hasPullHead::";
306306 $val1 = strpos( $pageContent, $start );
307 - if ( $val1 !== false ) {// if there is an occurence of [[hasPushHead::
 307+ if ( $val1 !== false ) {// if there is an occurrence of [[hasPushHead::
308308 $startVal = $val1 + strlen( $start );
309309 $end = "]]";
310310 $endVal = strpos( $pageContent, $end, $startVal );
@@ -313,7 +313,7 @@
314314 $result = str_replace( $value, $CSID, $pageContent );
315315 $pageContent = $result;
316316 if ( $result == "" )return false;
317 - } else {// no occurence of [[hasPushHead:: , we add
 317+ } else {// no occurrence of [[hasPushHead:: , we add
318318 $pageContent .= ' hasPullHead: [[hasPullHead::' . $CSID . ']]';
319319 }
320320 // save update
Index: trunk/extensions/QPoll/Excel/PEAR.php
@@ -433,7 +433,7 @@
434434 // {{{ delExpect()
435435
436436 /**
437 - * This method deletes all occurences of the specified element from
 437+ * This method deletes all occurrences of the specified element from
438438 * the expected error codes stack.
439439 *
440440 * @param mixed $error_code error code that should be deleted
Index: trunk/extensions/Wikidata/OmegaWiki/Test.skeleton.php
@@ -1,7 +1,7 @@
22 <?php
33
44 # Empty skeleton for omegawiki test cases.
5 -# Replace occurences of RecordHelperTest with the name of your own test case.
 5+# Replace occurrences of RecordHelperTest with the name of your own test case.
66
77
88 define( 'MEDIAWIKI', true );
Index: trunk/extensions/Translate/TranslateUtils.php
@@ -253,7 +253,7 @@
254254 /**
255255 * Escapes the message, and does some mangling to whitespace, so that it is
256256 * preserved when outputted as-is to html page. Line feeds are converted to
257 - * \<br /> and occurances of leading and trailing and multiple consecutive
 257+ * \<br /> and occurrences of leading and trailing and multiple consecutive
258258 * spaces to non-breaking spaces.
259259 *
260260 * @param $msg \string Plain text string.
Index: trunk/extensions/Arrays/RELEASE-NOTES
@@ -149,7 +149,7 @@
150150 - update '#arraysort:' adding "random" option to make the array of values in random order
151151 - add '#arrayreset' to free all defined arrays for memory saving
152152 - add '#arrayslice' to return an array bounded by start_index and length.
153 - - add '#arraysearch.' now we can return the index of the first occurence of an element, return -1 if
 153+ - add '#arraysearch.' now we can return the index of the first occurrence of an element, return -1 if
154154 not found
155155 - remove '#arraymember,' obsoleted by '#arraysearch'
156156 - remove '#arraypush,' obsoleted by '#arraydefine' and '#arraymerge'
@@ -172,4 +172,4 @@
173173 '#arraypush' (replaced by arraymerge)
174174 '#arraypop' (replaced by arrayslice)
175175 '#arraymember' (replaced by arraysearch)
176 - -------------------------------------------
\ No newline at end of file
 176+ -------------------------------------------
Index: trunk/extensions/Arrays/Arrays.php
@@ -446,8 +446,8 @@
447447
448448
449449 /**
450 - * locate the index of the first occurence of an element starting from the 'index'
451 - * - print "-1" (not found) or index (found) to show the index of the first occurence of 'value' in the array identified by arrayid
 450+ * locate the index of the first occurrence of an element starting from the 'index'
 451+ * - print "-1" (not found) or index (found) to show the index of the first occurrence of 'value' in the array identified by arrayid
452452 * - if 'yes' and 'no' are set, print value of them when found or not-found
453453 * - index is 0-based , it must be non-negative and less than lenth
454454 * usage:
Index: trunk/extensions/TreeAndMenu/TreeAndMenu.php
@@ -273,7 +273,7 @@
274274 $wgOut->addScript( "<script type=\"$wgJsMimeType\">$(function(){\n$script\n});</script>" );
275275 }
276276
277 - $text = preg_replace( "/\x7f1$u\x7f$id\x7f.+?$/m", $html, $text, 1 ); // replace first occurence of this trees root-id
 277+ $text = preg_replace( "/\x7f1$u\x7f$id\x7f.+?$/m", $html, $text, 1 ); // replace first occurrence of this trees root-id
278278 $nodes = '';
279279 $last = -1;
280280 }
Index: trunk/extensions/Gnuplot/Gnuplot.php
@@ -77,7 +77,7 @@
7878 fwrite($handle, $wgGnuplotDefaultSize . "\n");
7979 }
8080
81 - // Need to find each occurance of src:<FILE NAME> and replace it
 81+ // Need to find each occurrence of src:<FILE NAME> and replace it
8282 // with the complete file path
8383 while (strpos($gnuplotsrc, 'src:') != false) {
8484 $srcStartPosition = strpos ($gnuplotsrc, 'src:') + strlen("src:");
Index: trunk/extensions/SemanticResultFormats/ValueRank/SRF_ValueRank.php
@@ -3,7 +3,7 @@
44 /**
55 * Result printer that prints query results as a valuerank.
66 * In other words, it prints a list of all occuring values, with duplicates removed,
7 - * together with their occurance count.
 7+ * together with their occurrence count.
88 *
99 * For example, this result set: foo bar baz foo bar bar ohi
1010 * Will be turned into
Index: trunk/extensions/LiveTranslate/includes/jquery.liveTranslate.js
@@ -134,7 +134,7 @@
135135 };
136136
137137 /**
138 - * Obtain the special words and wrap occurances of them into notranslate spans.
 138+ * Obtain the special words and wrap occurrences of them into notranslate spans.
139139 *
140140 * @since 1.2
141141 *
@@ -253,4 +253,4 @@
254254
255255 return this;
256256
257 -}; } )( window.jQuery, window.liveTranslate );
\ No newline at end of file
 257+}; } )( window.jQuery, window.liveTranslate );
Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php
@@ -341,7 +341,7 @@
342342 }
343343
344344 # If the rule applies to this title, check if we're a member of the required groups,
345 - # remove action from rights list if not (can be mulitple occurences)
 345+ # remove action from rights list if not (can be mulitple occurrences)
346346 # - also update info array with page-restriction that apply to this title (LS), and rules in effect for this user (CR)
347347 if ( $deny ) {
348348 foreach ( $restriction as $action => $reqgroups ) {
Index: trunk/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php
@@ -33,7 +33,7 @@
3434
3535 {{#replace_e:value|from|to}}
3636
37 - Returns the given value with all occurences of 'from' replaced with 'to'.
 37+ Returns the given value with all occurrences of 'from' replaced with 'to'.
3838 See: http://php.net/manual/function.str-replace.php
3939
4040
Index: trunk/extensions/StringFunctionsEscaped/README
@@ -65,7 +65,7 @@
6666
6767 <nowiki>{{#replace_e:value|from|to}}</nowiki>
6868
69 -Returns the given value with all occurences of 'from' replaced with 'to'.
 69+Returns the given value with all occurrences of 'from' replaced with 'to'.
7070
7171 See: http://php.net/manual/function.str-replace.php
7272
Index: trunk/extensions/MobileFrontend/library/WURFL/Handlers/Utils.php
@@ -174,12 +174,12 @@
175175 }
176176
177177 /**
178 - * The nth($ordinal) occurance of $needle in $haystack or -1 if no match is found
 178+ * The nth($ordinal) occurrence of $needle in $haystack or -1 if no match is found
179179 * @param string $haystack
180180 * @param string $needle
181181 * @param int $ordinal
182182 * @throws InvalidArgumentException
183 - * @return int Char index of occurance
 183+ * @return int Char index of occurrence
184184 */
185185 public static function ordinalIndexOf($haystack, $needle, $ordinal) {
186186 if (is_null ( $haystack ) || empty ( $haystack )) {
@@ -206,7 +206,7 @@
207207 }
208208
209209 /**
210 - * First occurance of a / character
 210+ * First occurrence of a / character
211211 * @param string $string Haystack
212212 * @return int Char index
213213 */
@@ -216,7 +216,7 @@
217217 }
218218
219219 /**
220 - * Second occurance of a / character
 220+ * Second occurrence of a / character
221221 * @param string $string Haystack
222222 * @return int Char index
223223 */
@@ -228,7 +228,7 @@
229229 }
230230
231231 /**
232 - * First occurance of a space character
 232+ * First occurrence of a space character
233233 * @param string $string Haystack
234234 * @return int Char index
235235 */
@@ -238,7 +238,7 @@
239239 }
240240
241241 /**
242 - * First occurance of a ; character or length
 242+ * First occurrence of a ; character or length
243243 * @param string $string Haystack
244244 * @return int Char index
245245 */
@@ -247,7 +247,7 @@
248248 }
249249
250250 /**
251 - * First occurance of $toMatch string or length
 251+ * First occurrence of $toMatch string or length
252252 * @param string $string Haystack
253253 * @param string $toMatch Needle
254254 * @return int Char index
@@ -339,4 +339,4 @@
340340 public static function removeLocale($userAgent) {
341341 return preg_replace ( self::LANGUAGE_PATTERN, "", $userAgent, 1 );
342342 }
343 -}
\ No newline at end of file
 343+}
Index: trunk/extensions/Cite/Cite_body.php
@@ -510,7 +510,7 @@
511511 $this->mRefs[$group][$key]['text'] = null;
512512 # continue without break
513513 case 'increment':
514 - # Rollback increase in named ref occurences.
 514+ # Rollback increase in named ref occurrences.
515515 $this->mRefs[$group][$key]['count']--;
516516 break;
517517 }
@@ -890,7 +890,7 @@
891891 * @param $group
892892 * @param $key string The key for the link
893893 * @param $count int The index of the key, used for distinguishing
894 - * multiple occurances of the same key
 894+ * multiple occurrences of the same key
895895 * @param $label int The label to use for the link, I want to
896896 * use the same label for all occourances of
897897 * the same named reference.
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php
@@ -690,7 +690,7 @@
691691 'abusefilter-edit-throttle-period' => 'Field label for entering a time period.',
692692 'abusefilter-edit-throttle-seconds' => 'Throttle period in seconds. Parameters:
693693 * $1 is a number of seconds.',
694 - 'abusefilter-edit-throttle-groups' => 'Field label for properties to group throttle counts by (for example IP address and username). Throttling is the concept of limiting occurances of a certain action in a given time frame.',
 694+ 'abusefilter-edit-throttle-groups' => 'Field label for properties to group throttle counts by (for example IP address and username). Throttling is the concept of limiting occurrences of a certain action in a given time frame.',
695695 'abusefilter-edit-warn-message' => 'Field label for dropdown list with system messages.',
696696 'abusefilter-edit-warn-other' => 'Option in dropdown menu to specify no item from the list should be used.',
697697 'abusefilter-edit-warn-other-label' => 'Field label for entering a system message key to use as warning text.',
Index: trunk/extensions/MetaKeywords/MetaKeywords.i18n.php
@@ -14,7 +14,7 @@
1515 # The namespaces identifiers (all) and (main) specify a default for all namespaces and the zeroth namespace respectively.',
1616 'metadescription' => ' # Add lines to this page in the form "namespace|description tag to set"
1717 # The namespaces identifiers (all) and (main) specify a default for all namespaces and the zeroth namespace respectively.
18 - # Any occurences of $1 will be replaced by the current page\'s title.'
 18+ # Any occurrences of $1 will be replaced by the current page\'s title.'
1919 );
2020
2121 /** Message documentation (Message documentation)
Index: trunk/extensions/FreqPatternTagCloud/includes/computation/FrequentPatternAlgorithm.php
@@ -26,7 +26,7 @@
2727 $numerator = 0;
2828 $denominator = 0;
2929 foreach ($transactions as $transaction) {
30 - // For each occurence of the assumption -> increase denominator
 30+ // For each occurrence of the assumption -> increase denominator
3131 // If the conclusion occurs too -> increase numerator
3232
3333 // Check if transaction contains assumption
Index: trunk/extensions/Sternograph/Sternograph.body.php
@@ -10,12 +10,12 @@
1111 */
1212 const DELIMETER = '^';
1313 /**
14 - Delimeter for Speaker blocks. The very first occurence of this string
 14+ Delimeter for Speaker blocks. The very first occurrence of this string
1515 is used to separate the speaker block from the content block.
1616 */
1717 const SPEAKER_DELIM = '^^^';
1818 /**
19 - Delimeter for Context block. The very last occurence of this string
 19+ Delimeter for Context block. The very last occurrence of this string
2020 is used to separate the content block from the context block.
2121 */
2222 const CONTEXT_DELIM = '^^';
Index: trunk/extensions/DynamicPageList/DPL.php
@@ -1280,8 +1280,8 @@
12811281
12821282 foreach ( $matches as $matchA ) {
12831283 $matchCount = count( $matchA );
1284 - foreach ( $matchA as $occurence => $matchB ) {
1285 - if ( $occurence < $call ) {
 1284+ foreach ( $matchA as $occurrence => $matchB ) {
 1285+ if ( $occurrence < $call ) {
12861286 continue;
12871287 }
12881288 $match = $matchB[0];
@@ -1460,12 +1460,12 @@
14611461 );
14621462 }
14631463
1464 - // format one item of an entry in the output list (i.e. the collection of occurences of one item from the include parameter)
 1464+ // format one item of an entry in the output list (i.e. the collection of occurrences of one item from the include parameter)
14651465 function formatItem( $piece, $tagStart, $tagEnd ) {
14661466 return $tagStart . $piece . $tagEnd;
14671467 }
14681468
1469 - // format one single item of an entry in the output list (i.e. one occurence of one item from the include parameter)
 1469+ // format one single item of an entry in the output list (i.e. one occurrence of one item from the include parameter)
14701470 function formatSingleItems( &$pieces, $s, $article ) {
14711471 $firstCall = true;
14721472 foreach ( $pieces as $key => $val ) {
@@ -1500,7 +1500,7 @@
15011501 }
15021502 }
15031503
1504 - // format one single template argument of one occurence of one item from the include parameter
 1504+ // format one single template argument of one occurrence of one item from the include parameter
15051505 // is called via a backlink from DPLInclude::includeTemplate()
15061506 function formatTemplateArg( $arg, $s, $argNr, $firstCall, $maxlen, $article ) {
15071507 // we could try to format fields differently within the first call of a template
Index: trunk/extensions/DynamicPageList/DynamicPageListInclude.php
@@ -561,7 +561,7 @@
562562
563563 // template inclusion - find the place(s) where template1 is called,
564564 // replace its name by template2, then expand template2 and return the result
565 - // we return an array containing all occurences of the template call which match the condition "$mustMatch"
 565+ // we return an array containing all occurrences of the template call which match the condition "$mustMatch"
566566 // and do NOT match the condition "$mustNotMatch" (if specified)
567567 // we use a callback function to format retrieved parameters, accessible via $dpl->formatTemplateArg()
568568 public static function includeTemplate( $parser, $dpl, $dplNr, $article,

Follow-up revisions

RevisionCommit summaryAuthorDate
r114206MFT r114134, r114136, r114144, r114145, r114150, r114152, r114157awjrichards22:26, 19 March 2012

Status & tagging log