Solved Inconsistent extracting phrase group from phrase title

This topic has been solved
X

Xon

Guest
\XF\Entity\Phrase
PHP:

Code:
	public function getPhraseGroup($new = true)
	{
		$title = $new ? $this->getValue('title') : $this->getExistingValue('title');
		if (!$title || !preg_match('/^([a-z0-9_]+)\./i', $title, $match))
		{
			return null;
		}
...

XF\Service\Phrase\Rebuild
PHP:

Code:
	protected function _rebuildPhraseMap($id, array $map, array $phraseList)
	{
...
			$parts = explode('.', $title);

\XF\Language
PHP:

Code:
	public function getPhraseText($name)
	{
...
		$parts =...

Read more

Continue reading...