Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php |
— | — | @@ -92,36 +92,6 @@ |
93 | 93 | if ( isset( $this->props['desc'] ) ) { |
94 | 94 | $row['desc'] = $g->getDescriptionMessage(); |
95 | 95 | } |
96 | | - if ( isset( $this->props['desc-raw'] ) ) { |
97 | | - $row['desc-raw'] = $row['desc'] = wfMessage( $g->getDescriptionMessageKey() )->plain(); |
98 | | - } |
99 | | - if ( isset( $this->props['category'] ) ) { |
100 | | - $row['category'] = $g->getCategory(); |
101 | | - } |
102 | | - if ( isset( $this->props['resourceloader'] ) /*&& $g->supportsResourceLoader()*/ ) { |
103 | | - // Everything supports resourceloader now :D |
104 | | - // FIXME: We need to figure something out for legacy gadgets, or at least MaxSem thinks so |
105 | | - $row['resourceloader'] = ''; |
106 | | - } |
107 | | - if ( isset( $this->props['scripts'] ) ) { |
108 | | - $row['scripts'] = $g->getScripts(); |
109 | | - $result->setIndexedTagName( $row['scripts'], 'script' ); |
110 | | - } |
111 | | - if ( isset( $this->props['styles'] ) ) { |
112 | | - $row['styles'] = $g->getStyles(); |
113 | | - $result->setIndexedTagName( $row['styles'], 'style' ); |
114 | | - } |
115 | | - if ( isset( $this->props['dependencies'] ) ) { |
116 | | - $row['dependencies'] = $g->getDependencies(); |
117 | | - $result->setIndexedTagName( $row['dependencies'], 'module' ); |
118 | | - } |
119 | | - if ( isset( $this->props['rights'] ) ) { |
120 | | - $row['rights'] = $g->getRequiredRights(); |
121 | | - $result->setIndexedTagName( $row['rights'], 'right' ); |
122 | | - } |
123 | | - if ( isset( $this->props['default'] ) && $g->isEnabledByDefault() ) { |
124 | | - $row['default'] = ''; |
125 | | - } |
126 | 96 | $data[] = $row; |
127 | 97 | } |
128 | 98 | $result->setIndexedTagName( $data, 'gadget' ); |
— | — | @@ -151,14 +121,6 @@ |
152 | 122 | 'timestamp', |
153 | 123 | 'definitiontimestamp', |
154 | 124 | 'desc', |
155 | | - 'desc-raw', |
156 | | - 'category', |
157 | | - 'resourceloader', |
158 | | - 'scripts', |
159 | | - 'styles', |
160 | | - 'dependencies', |
161 | | - 'rights', |
162 | | - 'default', |
163 | 125 | ), |
164 | 126 | ), |
165 | 127 | 'categories' => array( |
— | — | @@ -184,18 +146,10 @@ |
185 | 147 | 'prop' => array( |
186 | 148 | 'What gadget information to get:', |
187 | 149 | ' name - Internal gadget name', |
188 | | - ' json - JSON representation of the gadget metadata. All other prop attributes below are deprecated but provided for backwards compatibility', |
| 150 | + ' json - JSON representation of the gadget metadata.', |
189 | 151 | ' timestamp - Last changed timestamp of the gadget module, including any files it references', |
190 | 152 | ' definitiontimestamp - Last changed timestamp of the gadget metadata', |
191 | 153 | ' desc - Gadget description transformed into HTML (can be slow, use only if really needed)', |
192 | | - ' desc-raw - Gadget description in raw wikitext', |
193 | | - ' category - Internal name of a category gadget belongs to (empty if top-level gadget)', |
194 | | - ' resourceloader - Whether gadget supports ResourceLoader', |
195 | | - " scripts - List of gadget's scripts", |
196 | | - " styles - List of gadget's styles", |
197 | | - ' dependencies - List of ResourceLoader modules gadget depends on', |
198 | | - ' rights - List of rights required to use gadget, if any', |
199 | | - ' default - Whether gadget is enabled by default', |
200 | 154 | ), |
201 | 155 | 'categories' => 'Gadgets from what categories to retrieve', |
202 | 156 | 'names' => 'Name(s) of gadgets to retrieve', |