diff options
author | mistic100 <mistic@piwigo.org> | 2014-02-18 17:35:38 +0000 |
---|---|---|
committer | mistic100 <mistic@piwigo.org> | 2014-02-18 17:35:38 +0000 |
commit | 1706d51c15e7e81a5dc0f63ef610e29939e2f769 (patch) | |
tree | fc52979060b34ce0d5b2a2bb5cab99106ccd7945 /include | |
parent | a49fd1f6a4c8e55a2f41ee555a97441f57621c74 (diff) |
remove "virtual" namespaces (or whatever it's called) in emogrifier
git-svn-id: http://piwigo.org/svn/trunk@27404 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/emogrifier.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/emogrifier.class.php b/include/emogrifier.class.php index 829cbfbff..587159e22 100644 --- a/include/emogrifier.class.php +++ b/include/emogrifier.class.php @@ -170,7 +170,7 @@ class Emogrifier { private function clearCache($key) { $allowedCacheKeys = array(self::CACHE_KEY_CSS, self::CACHE_KEY_SELECTOR, self::CACHE_KEY_XPATH); if (!in_array($key, $allowedCacheKeys, TRUE)) { - throw new \InvalidArgumentException('Invalid cache key: ' . $key, 1391822035); + throw new InvalidArgumentException('Invalid cache key: ' . $key, 1391822035); } $this->caches[$key] = array(); @@ -227,11 +227,11 @@ class Emogrifier { */ public function emogrify() { if ($this->html === '') { - throw new \BadMethodCallException('Please set some HTML first before calling emogrify.', 1390393096); + throw new BadMethodCallException('Please set some HTML first before calling emogrify.', 1390393096); } $xmlDocument = $this->createXmlDocument(); - $xpath = new \DOMXPath($xmlDocument); + $xpath = new DOMXPath($xmlDocument); $this->clearAllCaches(); // before be begin processing the CSS file, parse the document and normalize all existing CSS attributes (changes 'DISPLAY: none' to 'display: none'); @@ -403,7 +403,7 @@ class Emogrifier { * @return \DOMDocument */ private function createXmlDocument() { - $xmlDocument = new \DOMDocument; + $xmlDocument = new DOMDocument; $xmlDocument->encoding = self::ENCODING; $xmlDocument->strictErrorChecking = FALSE; $xmlDocument->formatOutput = TRUE; |