mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Removed globals from meta-tag method in header.
This commit is contained in:
parent
a5f5264cf7
commit
a7cc11f5ee
@ -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 '';
|
||||
}
|
||||
|
||||
|
@ -462,10 +462,20 @@ class e_parse_shortcode
|
||||
// $this->registered_codes[$code]['type'] = 'plugin';
|
||||
// $this->registered_codes[$code]['function'] = strtolower($code).'_shortcode';
|
||||
// $this->registered_codes[$code]['path'] = e_PLUGIN.$path.'/shortcodes/single/';
|
||||
// $this->registered_codes[$code]['perms'] = $uclass;
|
||||
|
||||
|
||||
|
||||
// $this->registered_codes[$code]['perms'] = $uclass;
|
||||
|
||||
|
||||
if(deftrue('e_DEVELOPER')) // experimental, could break something. - use theme shortcodes in other templates.
|
||||
{
|
||||
if(file_exists(THEME."theme_shortcodes.php"))
|
||||
{
|
||||
$classFunc = 'theme_shortcodes';
|
||||
$path = THEME."theme_shortcodes.php";
|
||||
include_once($path);
|
||||
$this->registerClassMethods($classFunc, $path, false);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($register_sc) && is_array($register_sc))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user