- Timestamp:
- Feb 18, 2014, 6:35:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/emogrifier.class.php
r27403 r27404 171 171 $allowedCacheKeys = array(self::CACHE_KEY_CSS, self::CACHE_KEY_SELECTOR, self::CACHE_KEY_XPATH); 172 172 if (!in_array($key, $allowedCacheKeys, TRUE)) { 173 throw new \InvalidArgumentException('Invalid cache key: ' . $key, 1391822035);173 throw new InvalidArgumentException('Invalid cache key: ' . $key, 1391822035); 174 174 } 175 175 … … 228 228 public function emogrify() { 229 229 if ($this->html === '') { 230 throw new \BadMethodCallException('Please set some HTML first before calling emogrify.', 1390393096);230 throw new BadMethodCallException('Please set some HTML first before calling emogrify.', 1390393096); 231 231 } 232 232 233 233 $xmlDocument = $this->createXmlDocument(); 234 $xpath = new \DOMXPath($xmlDocument);234 $xpath = new DOMXPath($xmlDocument); 235 235 $this->clearAllCaches(); 236 236 … … 404 404 */ 405 405 private function createXmlDocument() { 406 $xmlDocument = new \DOMDocument;406 $xmlDocument = new DOMDocument; 407 407 $xmlDocument->encoding = self::ENCODING; 408 408 $xmlDocument->strictErrorChecking = FALSE;
Note: See TracChangeset
for help on using the changeset viewer.