Skip to content
This repository
Browse code

BUG: open ticket 7678 fixing usable_tags to send an array to ArrayList

  • Loading branch information...
commit 9e1f7421f543e098bf893438a2b6d1f9d6e9d849 1 parent 1a91431
kmayo-ss authored July 18, 2012

Showing 1 changed file with 61 additions and 59 deletions. Show diff stats Hide diff stats

  1. 120  parsers/BBCodeParser.php
120  parsers/BBCodeParser.php
@@ -64,65 +64,67 @@ static function enable_smilies() {
64 64
 	
65 65
 	static function usable_tags() {
66 66
 		return new ArrayList(
67  
-			new ArrayData(array(
68  
-				"Title" => _t('BBCodeParser.BOLD', 'Bold Text'),
69  
-				"Example" => '[b]<b>'._t('BBCodeParser.BOLDEXAMPLE', 'Bold').'</b>[/b]'
70  
-			)),
71  
-			new ArrayData(array(
72  
-				"Title" => _t('BBCodeParser.ITALIC', 'Italic Text'),
73  
-				"Example" => '[i]<i>'._t('BBCodeParser.ITALICEXAMPLE', 'Italics').'</i>[/i]'
74  
-			)),
75  
-			new ArrayData(array(
76  
-				"Title" => _t('BBCodeParser.UNDERLINE', 'Underlined Text'),
77  
-				"Example" => '[u]<u>'._t('BBCodeParser.UNDERLINEEXAMPLE', 'Underlined').'</u>[/u]'
78  
-			)),
79  
-			new ArrayData(array(
80  
-				"Title" => _t('BBCodeParser.STRUCK', 'Struck-out Text'),
81  
-				"Example" => '[s]<s>'._t('BBCodeParser.STRUCKEXAMPLE', 'Struck-out').'</s>[/s]'
82  
-			)),
83  
-			new ArrayData(array(
84  
-				"Title" => _t('BBCodeParser.COLORED', 'Colored text'),
85  
-				"Example" => '[color=blue]'._t('BBCodeParser.COLOREDEXAMPLE', 'blue text').'[/color]'
86  
-			)),
87  
-			new ArrayData(array(
88  
-				"Title" => _t('BBCodeParser.ALIGNEMENT', 'Alignment'),
89  
-				"Example" => '[align=right]'._t('BBCodeParser.ALIGNEMENTEXAMPLE', 'right aligned').'[/align]'
90  
-			)),	
91  
-			new ArrayData(array(
92  
-				"Title" => _t('BBCodeParser.CODE', 'Code Block'),
93  
-				"Description" => _t('BBCodeParser.CODEDESCRIPTION', 'Unformatted code block'),
94  
-				"Example" => '[code]'._t('BBCodeParser.CODEEXAMPLE', 'Code block').'[/code]'
95  
-			)),
96  
-			new ArrayData(array(
97  
-				"Title" => _t('BBCodeParser.EMAILLINK', 'Email link'),
98  
-				"Description" => _t('BBCodeParser.EMAILLINKDESCRIPTION', 'Create link to an email address'),
99  
-				"Example" => "[email]you@yoursite.com[/email]"
100  
-			)),
101  
-			new ArrayData(array(
102  
-				"Title" => _t('BBCodeParser.EMAILLINK', 'Email link'),
103  
-				"Description" => _t('BBCodeParser.EMAILLINKDESCRIPTION', 'Create link to an email address'),
104  
-				"Example" => "[email=you@yoursite.com]Email[/email]"
105  
-			)),
106  
-			new ArrayData(array(
107  
-				"Title" => _t('BBCodeParser.UNORDERED', 'Unordered list'),
108  
-				"Description" => _t('BBCodeParser.UNORDEREDDESCRIPTION', 'Unordered list'),
109  
-				"Example" => '[ulist][*]'._t('BBCodeParser.UNORDEREDEXAMPLE1', 'unordered item 1').'[/ulist]'
110  
-			)),			
111  
-			new ArrayData(array(
112  
-				"Title" => _t('BBCodeParser.IMAGE', 'Image'),
113  
-				"Description" => _t('BBCodeParser.IMAGEDESCRIPTION', 'Show an image in your post'),
114  
-				"Example" => "[img]http://www.website.com/image.jpg[/img]"
115  
-			)),
116  
-			new ArrayData(array(
117  
-				"Title" => _t('BBCodeParser.LINK', 'Website link'),
118  
-				"Description" => _t('BBCodeParser.LINKDESCRIPTION', 'Link to another website or URL'),
119  
-				"Example" => '[url]http://www.website.com/[/url]'
120  
-			)),
121  
-			new ArrayData(array(
122  
-				"Title" => _t('BBCodeParser.LINK', 'Website link'),
123  
-				"Description" => _t('BBCodeParser.LINKDESCRIPTION', 'Link to another website or URL'),
124  
-				"Example" => "[url=http://www.website.com/]Website[/url]"
125  
-			))		
  67
+			array(
  68
+				new ArrayData(array(
  69
+					"Title" => _t('BBCodeParser.BOLD', 'Bold Text'),
  70
+					"Example" => '[b]<b>'._t('BBCodeParser.BOLDEXAMPLE', 'Bold').'</b>[/b]'
  71
+				)),
  72
+				new ArrayData(array(
  73
+					"Title" => _t('BBCodeParser.ITALIC', 'Italic Text'),
  74
+					"Example" => '[i]<i>'._t('BBCodeParser.ITALICEXAMPLE', 'Italics').'</i>[/i]'
  75
+				)),
  76
+				new ArrayData(array(
  77
+					"Title" => _t('BBCodeParser.UNDERLINE', 'Underlined Text'),
  78
+					"Example" => '[u]<u>'._t('BBCodeParser.UNDERLINEEXAMPLE', 'Underlined').'</u>[/u]'
  79
+				)),
  80
+				new ArrayData(array(
  81
+					"Title" => _t('BBCodeParser.STRUCK', 'Struck-out Text'),
  82
+					"Example" => '[s]<s>'._t('BBCodeParser.STRUCKEXAMPLE', 'Struck-out').'</s>[/s]'
  83
+				)),
  84
+				new ArrayData(array(
  85
+					"Title" => _t('BBCodeParser.COLORED', 'Colored text'),
  86
+					"Example" => '[color=blue]'._t('BBCodeParser.COLOREDEXAMPLE', 'blue text').'[/color]'
  87
+				)),
  88
+				new ArrayData(array(
  89
+					"Title" => _t('BBCodeParser.ALIGNEMENT', 'Alignment'),
  90
+					"Example" => '[align=right]'._t('BBCodeParser.ALIGNEMENTEXAMPLE', 'right aligned').'[/align]'
  91
+				)),	
  92
+				new ArrayData(array(
  93
+					"Title" => _t('BBCodeParser.CODE', 'Code Block'),
  94
+					"Description" => _t('BBCodeParser.CODEDESCRIPTION', 'Unformatted code block'),
  95
+					"Example" => '[code]'._t('BBCodeParser.CODEEXAMPLE', 'Code block').'[/code]'
  96
+				)),
  97
+				new ArrayData(array(
  98
+					"Title" => _t('BBCodeParser.EMAILLINK', 'Email link'),
  99
+					"Description" => _t('BBCodeParser.EMAILLINKDESCRIPTION', 'Create link to an email address'),
  100
+					"Example" => "[email]you@yoursite.com[/email]"
  101
+				)),
  102
+				new ArrayData(array(
  103
+					"Title" => _t('BBCodeParser.EMAILLINK', 'Email link'),
  104
+					"Description" => _t('BBCodeParser.EMAILLINKDESCRIPTION', 'Create link to an email address'),
  105
+					"Example" => "[email=you@yoursite.com]Email[/email]"
  106
+				)),
  107
+				new ArrayData(array(
  108
+					"Title" => _t('BBCodeParser.UNORDERED', 'Unordered list'),
  109
+					"Description" => _t('BBCodeParser.UNORDEREDDESCRIPTION', 'Unordered list'),
  110
+					"Example" => '[ulist][*]'._t('BBCodeParser.UNORDEREDEXAMPLE1', 'unordered item 1').'[/ulist]'
  111
+				)),			
  112
+				new ArrayData(array(
  113
+					"Title" => _t('BBCodeParser.IMAGE', 'Image'),
  114
+					"Description" => _t('BBCodeParser.IMAGEDESCRIPTION', 'Show an image in your post'),
  115
+					"Example" => "[img]http://www.website.com/image.jpg[/img]"
  116
+				)),
  117
+				new ArrayData(array(
  118
+					"Title" => _t('BBCodeParser.LINK', 'Website link'),
  119
+					"Description" => _t('BBCodeParser.LINKDESCRIPTION', 'Link to another website or URL'),
  120
+					"Example" => '[url]http://www.website.com/[/url]'
  121
+				)),
  122
+				new ArrayData(array(
  123
+					"Title" => _t('BBCodeParser.LINK', 'Website link'),
  124
+					"Description" => _t('BBCodeParser.LINKDESCRIPTION', 'Link to another website or URL'),
  125
+					"Example" => "[url=http://www.website.com/]Website[/url]"
  126
+				))		
  127
+			)
126 128
 		);
127 129
 	}
128 130
 	

0 notes on commit 9e1f742

Please sign in to comment.
Something went wrong with that request. Please try again.