Bläddra i källkod

Typo in variable name (bbcodes_hanlders => bbcodes_handlers) [editor] - Thanks Nao for the report

Signed-off-by: emanuele <[email protected]>
emanuele 12 år sedan
förälder
incheckning
76cb49f80f
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. 2 2
      Sources/Subs-Editor.php
  2. 1 1
      Themes/default/GenericControls.template.php

+ 2 - 2
Sources/Subs-Editor.php

@@ -1706,7 +1706,7 @@ function create_control_richedit($editorOptions)
 		}
 
 		$bbcodes_styles = '';
-		$context['bbcodes_hanlders'] = '';
+		$context['bbcodes_handlers'] = '';
 		$context['bbc_toolbar'] = array();
 		foreach ($context['bbc_tags'] as $row => $tagRow)
 		{
@@ -1727,7 +1727,7 @@ function create_control_richedit($editorOptions)
 			}';
 						if (isset($tag['before']))
 						{
-							$context['bbcodes_hanlders'] = '
+							$context['bbcodes_handlers'] = '
 				$.sceditor.setCommand(
 					' . javaScriptEscape($tag['code']) . ',
 					function () {

+ 1 - 1
Themes/default/GenericControls.template.php

@@ -29,7 +29,7 @@ function template_control_richedit($editor_id, $smileyContainer = null, $bbcCont
 		<input type="hidden" name="', $editor_id, '_mode" id="', $editor_id, '_mode" value="0" />
 		<script type="text/javascript"><!-- // --><![CDATA[
 			$(document).ready(function() {
-				', !empty($context['bbcodes_hanlders']) ? $context['bbcodes_hanlders'] : '', '
+				', !empty($context['bbcodes_handlers']) ? $context['bbcodes_handlers'] : '', '
 
 				$("#', $editor_id, '").sceditorBBCodePlugin({
 					style: "', $settings['default_theme_url'], '/css/jquery.sceditor.default.css",