mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Corrected .glyph detection in toIcon() function.
This commit is contained in:
@@ -2688,7 +2688,7 @@ class e_parser
|
|||||||
/**
|
/**
|
||||||
* Parse xxxxx.glyph file to bootstrap glyph format.
|
* Parse xxxxx.glyph file to bootstrap glyph format.
|
||||||
* @param string $text
|
* @param string $text
|
||||||
* @param array
|
* @param array of $parms
|
||||||
*/
|
*/
|
||||||
public function toGlyph($text, $space=" ")
|
public function toGlyph($text, $space=" ")
|
||||||
{
|
{
|
||||||
@@ -2771,7 +2771,7 @@ class e_parser
|
|||||||
|
|
||||||
$ext = pathinfo($icon, PATHINFO_EXTENSION);
|
$ext = pathinfo($icon, PATHINFO_EXTENSION);
|
||||||
|
|
||||||
if(!$ext || $ext == '.glyph') // Bootstrap or Font-Awesome.
|
if(!$ext || $ext == 'glyph') // Bootstrap or Font-Awesome.
|
||||||
{
|
{
|
||||||
return $this->toGlyph($icon,$parm);
|
return $this->toGlyph($icon,$parm);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user