Changeset View
Changeset View
Standalone View
Standalone View
externals/pear-figlet/Text/Figlet.php
Show First 20 Lines • Show All 363 Lines • ▼ Show 20 Lines | function lineEcho($str, $inhtml = false) | ||||
} | } | ||||
$trans = array("\0" => '', $this->hardblank => ' '); | $trans = array("\0" => '', $this->hardblank => ' '); | ||||
$str = strtr(implode("\n", $out), $trans); | $str = strtr(implode("\n", $out), $trans); | ||||
if ($inhtml) { | if ($inhtml) { | ||||
self::raiseError( | self::raiseError( | ||||
'Do not use the HTML escaping provided by this class in '. | 'Do not use the HTML escaping provided by this class in '. | ||||
'a Phabricator context.'); | 'a '. | ||||
PhabricatorPlatformSite::getName(). | |||||
' context.'); | |||||
} | } | ||||
speck: The `raiseError()` here doesn't use `pht()` so this uses string concatenation | |||||
return $str; | return $str; | ||||
} | } | ||||
/** | /** | ||||
* It is preg_replace callback function that makes horizontal letter smushing | * It is preg_replace callback function that makes horizontal letter smushing | ||||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0
The raiseError() here doesn't use pht() so this uses string concatenation