Changeset 27404 for trunk


Ignore:
Timestamp:
Feb 18, 2014, 6:35:38 PM (11 years ago)
Author:
mistic100
Message:

remove "virtual" namespaces (or whatever it's called) in emogrifier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/emogrifier.class.php

    r27403 r27404  
    171171        $allowedCacheKeys = array(self::CACHE_KEY_CSS, self::CACHE_KEY_SELECTOR, self::CACHE_KEY_XPATH);
    172172        if (!in_array($key, $allowedCacheKeys, TRUE)) {
    173             throw new \InvalidArgumentException('Invalid cache key: ' . $key, 1391822035);
     173            throw new InvalidArgumentException('Invalid cache key: ' . $key, 1391822035);
    174174        }
    175175
     
    228228    public function emogrify() {
    229229        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);
    231231        }
    232232
    233233        $xmlDocument = $this->createXmlDocument();
    234         $xpath = new \DOMXPath($xmlDocument);
     234        $xpath = new DOMXPath($xmlDocument);
    235235        $this->clearAllCaches();
    236236
     
    404404     */
    405405    private function createXmlDocument() {
    406         $xmlDocument = new \DOMDocument;
     406        $xmlDocument = new DOMDocument;
    407407        $xmlDocument->encoding = self::ENCODING;
    408408        $xmlDocument->strictErrorChecking = FALSE;
Note: See TracChangeset for help on using the changeset viewer.