summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspider@app1 <spiderr@bitweaver.org>2016-04-25 16:57:31 -0400
committerspider@app1 <spiderr@bitweaver.org>2016-04-25 16:57:31 -0400
commit7467696e4fa17ffaeacdb2b8d058a5a523af4eab (patch)
tree460a093537f00b6f8c7267942f2001ac1c73afb2
parentbe4f70a3071f867e0cd77e4b303fc35dfd13f4d2 (diff)
downloadthemes-7467696e4fa17ffaeacdb2b8d058a5a523af4eab.tar.gz
themes-7467696e4fa17ffaeacdb2b8d058a5a523af4eab.tar.bz2
themes-7467696e4fa17ffaeacdb2b8d058a5a523af4eab.zip
fix textarea so formatguid doesn't keep getting reset
-rw-r--r--smartyplugins/function.textarea.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/smartyplugins/function.textarea.php b/smartyplugins/function.textarea.php
index a19c5f1..218169e 100644
--- a/smartyplugins/function.textarea.php
+++ b/smartyplugins/function.textarea.php
@@ -54,7 +54,7 @@ function smarty_function_textarea( $pParams, &$pSmarty ) {
case 'error':
case 'required':
case 'maxchars':
- $gBitSmarty->assign("textarea_".$_key, $_value);
+ $pSmarty->assign("textarea_".$_key, $_value);
break;
case 'class':
$class .= ' '.$_key;
@@ -63,16 +63,16 @@ function smarty_function_textarea( $pParams, &$pSmarty ) {
$style .= $_key;
break;
case 'formatguid':
- $gBitSmarty->assign('formatGuid', $_value);
+ $pSmarty->assign('formatGuid', $_value);
break;
case 'langcode':
- $gBitSmarty->assign('langCode', $_value);
+ $pSmarty->assign('langCode', $_value);
break;
case 'gContent':
// Trick out gContent
$oldContent = $gContent;
$gContent = $_value;
- $gBitSmarty->assign('gContent', $_value);
+ $pSmarty->assign('gContent', $_value);
break;
default:
$attributes .= $_key.'="'.$_value.'" ';
@@ -84,30 +84,30 @@ function smarty_function_textarea( $pParams, &$pSmarty ) {
if ($gBitSystem->isPackageActive('bnspell')) {
$style .= (empty($style) ? '' : ';').'height:'.$pParams['rows'].'em;';
}
- $gBitSmarty->assign('textarea_attributes', $attributes);
+ $pSmarty->assign('textarea_attributes', $attributes);
if (!empty($style)) {
- $gBitSmarty->assign('textarea_style', 'style="'.$style.'"');
+ $pSmarty->assign('textarea_style', 'style="'.$style.'"');
}
- $gBitSmarty->assign('textarea_class', 'class="form-control '.$class.'"');
- $ret = $gBitSmarty->fetch("bitpackage:liberty/edit_textarea.tpl");
+ $pSmarty->assign('textarea_class', 'class="form-control '.$class.'"');
+ $ret = $pSmarty->fetch("bitpackage:liberty/edit_textarea.tpl");
if( is_object( $gContent ) ) {
if( $formatGuid = $gContent->getField( 'format_guid' ) ) {
- $gBitSmarty->assign('formatGuid', $formatGuid);
+ $pSmarty->assign('formatGuid', $formatGuid);
}
if( $langCode = $gContent->getField( 'lang_code' ) ) {
- $gBitSmarty->assign( 'langCode', $langCode );
+ $pSmarty->assign( 'langCode', $langCode );
}
}
// Restore gContent
if (isset($oldContent)) {
$gContent = $oldContent;
- $gBitSmarty->assign('gContent', $oldContent);
+ $pSmarty->assign('gContent', $oldContent);
}
// since we have the funky {textarea} in play, we'll display the edit help tab
- $gBitSmarty->assign( 'display_help_tab', TRUE );
+ $pSmarty->assign( 'display_help_tab', TRUE );
return $ret;
}