Index: trunk/extensions/AmazonPlus/AmazonPlus.php |
— | — | @@ -100,14 +100,14 @@ |
101 | 101 | |
102 | 102 | $am = new AmazonPlus( $title, $args, $input ); |
103 | 103 | if ( !$am instanceOf AmazonPlus ) { |
104 | | - return wfMsg( $am ); |
| 104 | + return '<span class="error">' . wfMsg( $am ) . '</span>'; |
105 | 105 | } |
106 | 106 | wfSuppressWarnings(); |
107 | 107 | $s = $am->doRequest(); |
108 | 108 | if ( $s === false ) { |
109 | 109 | return '<span class="error">' . wfMsg( 'amazonplus-nores' ) . '</span>'; |
110 | 110 | } elseif ( $s !== true ) { |
111 | | - return wfMsg( $s ); |
| 111 | + return '<span class="error">' . wfMsg( $s ) . '</span>'; |
112 | 112 | } |
113 | 113 | |
114 | 114 | $ret = $am->getResult(); |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | } |
137 | 137 | $id = ( isset( $args['id'] ) ) ? $args['id'] : $this->getId( $title, $args ); |
138 | 138 | if ( !$id ) { |
139 | | - return '<span class="error">' . 'amazonplus-noidres' . '</span>'; |
| 139 | + return 'amazonplus-noidres'; |
140 | 140 | } |
141 | 141 | $this->title = $title; |
142 | 142 | $this->input = $input; |
— | — | @@ -197,12 +197,12 @@ |
198 | 198 | |
199 | 199 | $this->response = file_get_contents( $str ); |
200 | 200 | if ( $this->response === false ) { |
201 | | - return '<span class="error">' . 'amazonplus-fgcerr' . '</span>'; |
| 201 | + return 'amazonplus-fgcerr'; |
202 | 202 | } |
203 | 203 | |
204 | 204 | $this->xml = simplexml_load_string( $this->response ); |
205 | 205 | if ( $this->xml === false ) { |
206 | | - return '<span class="error">' . 'amazonplus-slserr' . '</span>'; |
| 206 | + return 'amazonplus-slserr'; |
207 | 207 | } |
208 | 208 | |
209 | 209 | if ( $this->xml->Items->TotalResults == '0' ) { |