1
0
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:
Cameron
2015-11-22 13:04:21 -08:00
parent 6db8c7ddeb
commit 4bef86fb87
2 changed files with 16 additions and 1 deletions

View File

@@ -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;