Révision 41cc1b08
Ajouté par Assos Assos il y a presque 9 ans
drupal7/sites/all/modules/feeds/plugins/FeedsSimplePieParser.inc | ||
---|---|---|
52 | 52 |
public function getMIMEType() { |
53 | 53 |
return $this->simplepie_enclosure->get_real_type(); |
54 | 54 |
} |
55 |
|
|
55 | 56 |
} |
56 | 57 |
|
57 | 58 |
/** |
... | ... | |
67 | 68 |
public function parse(FeedsSource $source, FeedsFetcherResult $fetcher_result) { |
68 | 69 |
feeds_include_simplepie(); |
69 | 70 |
|
70 |
// Please be quiet SimplePie. |
|
71 |
$level = error_reporting(); |
|
72 |
error_reporting($level ^ E_DEPRECATED ^ E_STRICT); |
|
73 |
|
|
74 | 71 |
// Initialize SimplePie. |
75 | 72 |
$parser = new SimplePie(); |
76 | 73 |
$parser->set_raw_data($fetcher_result->getRaw()); |
... | ... | |
149 | 146 |
} |
150 | 147 |
// Release parser. |
151 | 148 |
unset($parser); |
152 |
// Set error reporting back to its previous value. |
|
153 |
error_reporting($level); |
|
149 |
|
|
154 | 150 |
return $result; |
155 | 151 |
} |
156 | 152 |
|
... | ... | |
237 | 233 |
$words = array_slice($words, 0, 3); |
238 | 234 |
return implode(' ', $words); |
239 | 235 |
} |
236 |
|
|
240 | 237 |
} |
Formats disponibles : Unified diff
Update feeds 7.x-2.0-alpha9 -> 7.x-2.0-beta1
Install lib simplepie 1.3.1