Last modified: 2009-06-05 00:07:50 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 T21078, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19078 - new #pos functions differs from version in StringFunctions (SVN 1.16)
new #pos functions differs from version in StringFunctions (SVN 1.16)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-04 16:50 UTC by Gregor Hagedorn
Modified: 2009-06-05 00:07 UTC (History)
1 user (show)

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


Attachments

Description Gregor Hagedorn 2009-06-04 16:50:10 UTC
The definition of the behaviour of pos in http://www.mediawiki.org/wiki/Extension:StringFunctions is:

"If the search term is found, the return value is a zero-based integer of the first position within the string. If the search term is not found, the function returns an empty string."

The current revision SVN 51470 of String functions 1.2.0 returns -1 if the string is not found.

Wikis which had string functions installed will currently no longer display their templates correctly.
Comment 1 Robert Rohde 2009-06-05 00:07:50 UTC
Fixed in r51483.

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


Navigation
Links