Last modified: 2006-08-29 04:16:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9158, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7158 - {{padleft:}} and {{padright:}} do not return string when missing length
{{padleft:}} and {{padright:}} do not return string when missing length
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.8.x
All All
: Normal normal (vote)
: ---
Assigned To: Rob Church
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-29 01:35 UTC by emddudley
Modified: 2006-08-29 04:16 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description emddudley 2006-08-29 01:35:51 UTC
When the {{padleft:}} and {{padright:}} magic words were introduced, they
returned the original string provided if the second parameter, the length, was
less than or equal to the length of the string.

Now (I presume due to bug fixes #7080 and #7081) the functions do not return a
string if the length is missing.

For example, {{padleft:001||0}} returns nothing. It should return 001.
Comment 1 emddudley 2006-08-29 01:43:48 UTC
{{padleft:001|0|0}} would be another example where the function should return
the original, unmodified string.
Comment 2 Rob Church 2006-08-29 04:16:03 UTC
Fixed in SVN trunk, r16257.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links