Fix reference to removed truncate() function
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 25 Mar 2019 16:27:47 +0000 (17:27 +0100)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 25 Mar 2019 16:27:47 +0000 (17:27 +0100)
truncate() was removed in change I7a3f7a3327 (commit a1b894cc42, task
T197492), so change the documentation to refer to the still existing
truncateForDatabase() instead.

Change-Id: I26cf6521e15eb6f61ad09c92b2d56831590b6663

languages/Language.php

index 9eea7ab..71d350f 100644 (file)
@@ -3515,8 +3515,8 @@ class Language {
         * Truncate a string to a specified number of characters, appending an optional
         * string (e.g. for ellipsis).
         *
-        * This provides multibyte version of truncate() method of this class, suitable for truncation
-        * based on number of characters, instead of number of bytes.
+        * This provides multibyte version of truncateForDatabase() method of this class,
+        * suitable for truncation based on number of characters, instead of number of bytes.
         *
         * If $length is negative, the string will be truncated from the beginning.
         *