Mailer.php
authorAlan Knowles <alan@roojs.com>
Fri, 5 Dec 2014 04:35:02 +0000 (12:35 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 5 Dec 2014 04:35:02 +0000 (12:35 +0800)
Mailer.php

index 3c616f4..71dbe87 100644 (file)
@@ -365,9 +365,13 @@ class Pman_Core_Mailer {
         // this may raise parse errors as some html may be a component..
         @$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
         $links = $dom->getElementsByTagName('link');
-        print_R($links);
-        //<link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css-mailer/mailer.css"> 
-        foreach ($links as $i=>$link) {
+        $lc = array();
+        foreach ($links as $link) {
+            $lc[] = $link;
+        }
+        //<link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css-mailer/mailer.css">
+        
+        foreach ($lc as $i=>$link) {
             var_dump($link->getAttribute('href'));
             
             if ($link->getAttribute('rel') != 'stylesheet') {