Skip to content
Permalink
Browse files

Fixed #8, #9:

Fixed deprecated warning!
  • Loading branch information...
vasiljevski committed Jul 11, 2017
1 parent 3659212 commit 965615d181b1645340adb916434d7d09d6935a49
Showing with 6 additions and 1 deletion.
  1. +6 −1 com_admirorgallery/site/views/layout/tmpl/default.php
@@ -38,8 +38,13 @@
JPluginHelper::importPlugin( 'content' );
$article = new JObject();
$app = JFactory::getApplication();
$active = $app->getMenu()->getActive();
$article->text = null;
//Display page heading
if(JSite::getMenu()->getActive()->params->get('show_page_heading'))
if($active->params->get('show_page_heading'))
{
$article->text = '<h1>'.JSite::getMenu()->getActive()->params->get('page_title').'</h1>';
}

0 comments on commit 965615d

Please sign in to comment.
You can’t perform that action at this time.