1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Removed globals from meta-tag method in header.

This commit is contained in:
Cameron
2015-05-31 09:25:59 -07:00
parent a5f5264cf7
commit a7cc11f5ee
2 changed files with 22 additions and 7 deletions

View File

@@ -459,10 +459,15 @@ $key_merge = (defined("META_MERGE") && META_MERGE != FALSE && $pref['meta_keywor
function render_meta($type)
{
global $pref,$tp;
$tp = e107::getParser();
$pref = e107::getPref();
if (!isset($pref['meta_'.$type][e_LANGUAGE]) || empty($pref['meta_'.$type][e_LANGUAGE]))
{
$key = 'meta_'.$type;
$language = e_LANGUAGE;
if(empty($pref[$key][$language]))
{
// e107::getMessage()->addError("Couldn't find: pref - ".$key);
return '';
}