diff --git a/e107_admin/footer.php b/e107_admin/footer.php
index 553339423..2f8abbcbf 100644
--- a/e107_admin/footer.php
+++ b/e107_admin/footer.php
@@ -203,9 +203,10 @@ if (ADMIN && isset($queryinfo) && is_array($queryinfo))
{
$c = 1;
$mySQLInfo = $sql->mySQLinfo;
- echo "
+ echo "
+
- ID | SQL Queries | \n
\n";
+ ID | SQL Queries | \n\n";
foreach ($queryinfo as $infovalue)
{
echo "\n\n
\n";
diff --git a/e107_admin/menus.php b/e107_admin/menus.php
index 7430ce97b..e2af978d0 100644
--- a/e107_admin/menus.php
+++ b/e107_admin/menus.php
@@ -883,7 +883,7 @@ class e_layout
$frm = e107::getForm();
// $text = " ";
- $text .= str_replace("_menu","",$row['name']);
+ $text = str_replace("_menu","",$row['name']);
// $layout = 'layout';
// $area = 'area';
@@ -986,6 +986,12 @@ class e_layout
foreach($files as $file)
{
+
+ if($file == 'e_menu.php')
+ {
+ continue;
+ }
+
$valid_menu = false;
if (file_exists($file['path'].'/plugin.xml') || file_exists($file['path'].'/plugin.php'))
diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php
index f4a346778..9e61c4e11 100644
--- a/e107_core/shortcodes/batch/news_shortcodes.php
+++ b/e107_core/shortcodes/batch/news_shortcodes.php
@@ -468,6 +468,7 @@ class news_shortcodes extends e_shortcode
$newsThumb = $tmp['file'];
$class = 'news-thumbnail-'.$tmp['count'];
+ $dimensions = null;
if(!$newsThumb && $parm != 'placeholder')
{
@@ -510,7 +511,11 @@ class news_shortcodes extends e_shortcode
$_src = $src = ($newsThumb[0] == '{' || $parms[1] == 'placeholder') ? e107::getParser()->replaceConstants($newsThumb, 'abs') : e_IMAGE_ABS."newspost_images/".$newsThumb;
- if($parms[2] || $parms[1] == 'placeholder') $src = e107::getParser()->thumbUrl($src, $parms[2]);
+ if($parms[2] || $parms[1] == 'placeholder')
+ {
+ $src = e107::getParser()->thumbUrl($src, $parms[2]);
+ $dimensions = e107::getParser()->thumbDimensions();
+ }
}
@@ -523,15 +528,15 @@ class news_shortcodes extends e_shortcode
break;
case 'tag':
- return "
";
+ return "
";
break;
case 'img':
- return "
";
+ return "
";
break;
default:
- return "news_item)."'>
";
+ return "news_item)."'>
";
break;
}
}
@@ -654,6 +659,7 @@ class news_shortcodes extends e_shortcode
$class = "news_image news-image img-responsive img-rounded";
$class .= ' news-image-'.$tmp['count'];
+ $dimensions = null;
if($tp->isVideo($srcPath))
@@ -667,7 +673,8 @@ class news_shortcodes extends e_shortcode
{
if(varset($parm['type']) == 'placeholder' || vartrue($parm['placeholder']))
{
- $src = $tp->thumbUrl(); // placeholder;
+ $src = $tp->thumbUrl(); // placeholder;
+ $dimensions = $tp->thumbDimensions();
}
else
{
@@ -676,7 +683,8 @@ class news_shortcodes extends e_shortcode
}
elseif($srcPath[0] == '{' ) // Always resize. Use {SETIMAGE: w=x&y=x&crop=0} PRIOR to calling shortcode to change.
{
- $src = $tp->thumbUrl($srcPath);
+ $src = $tp->thumbUrl($srcPath);
+ $dimensions = $tp->thumbDimensions();
}
else
{
@@ -709,12 +717,12 @@ class news_shortcodes extends e_shortcode
break;
case 'tag':
- return "
";
+ return "
";
break;
case 'url':
default:
- return "news_item)."'>
";
+ return "news_item)."'>
";
break;
}
}
diff --git a/e107_core/templates/footer_default.php b/e107_core/templates/footer_default.php
index 7323900de..d62442368 100644
--- a/e107_core/templates/footer_default.php
+++ b/e107_core/templates/footer_default.php
@@ -187,9 +187,9 @@ if (ADMIN && isset($queryinfo) && is_array($queryinfo))
{
$c = 1;
$mySQLInfo = $sql->mySQLinfo;
- echo "
+ echo "
- ID | SQL Queries | \n
\n";
+ ID | SQL Queries | \n\n";
foreach ($queryinfo as $infovalue)
{
echo "\n\n
\n";
diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php
index b85950b9d..e830c2461 100644
--- a/e107_plugins/forum/forum_class.php
+++ b/e107_plugins/forum/forum_class.php
@@ -1724,7 +1724,7 @@ class e107forum
";
if ($sql->gen($qry))
{
- $row = $sql->fetch(MYSQL_ASSOC);
+ $row = $sql->fetch();
$row['thread_sef'] = eHelper::title2sef($row['thread_name'],'dashl');
return $row;
}