mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
Include associated menu image in page meta.
This commit is contained in:
@@ -3258,6 +3258,12 @@ class e_parser
|
||||
*/
|
||||
function isImage($file)
|
||||
{
|
||||
if(substr($file,0,3)=="{e_")
|
||||
{
|
||||
$file = e107::getParser()->replaceConstants($file);
|
||||
}
|
||||
|
||||
|
||||
$ext = pathinfo($file,PATHINFO_EXTENSION);
|
||||
|
||||
return ($ext == 'jpg' || $ext == 'png' || $ext == 'gif' || $ext == 'jpeg') ? true : false;
|
||||
|
Reference in New Issue
Block a user