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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7158 - {{padleft:}} and {{padright:}} do not return string when missing length
{{padleft:}} and {{padright:}} do not return string when missing length
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Rob Church
Depends on:
  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: ---


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.