]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add comment() method, have action use it
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 14 Jan 2009 18:57:29 +0000 (13:57 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 14 Jan 2009 18:57:29 +0000 (13:57 -0500)
lib/action.php
lib/xmloutputter.php

index 0419828b3a4a85a3f4c9fe6befead3e98b26de3c..8d0fb2634a0bfe88b81ab22af398082ca889e2f5 100644 (file)
@@ -116,8 +116,8 @@ class Action extends HTMLOutputter // lawsuit
         foreach (array(6,7) as $ver) {
             if (file_exists(theme_file('ie'.$ver.'.css'))) {
                 // Yes, IE people should be put in jail.
-                $xw->writeComment('[if lte IE '.$ver.']><link rel="stylesheet" type="text/css" '.
-                                  'href="'.theme_path('ie'.$ver.'.css').'?version='.LACONICA_VERSION.'" /><![endif]');
+                $this->comment('[if lte IE '.$ver.']><link rel="stylesheet" type="text/css" '.
+                               'href="'.theme_path('ie'.$ver.'.css').'?version='.LACONICA_VERSION.'" /><![endif]');
             }
         }
     }
@@ -556,7 +556,6 @@ class Action extends HTMLOutputter // lawsuit
         $this->elementStart('div', array('id' => 'content'));
     }
 
-
     // Added @id to li for some control. We might want to move this to htmloutputter.php
     function common_menu_item($id=null, $url, $text, $title=null, $is_selected=false)
     {
index 5bbd35627eb5a1650ab1d7773fff92723ef4b6b1..9ca0c91bd6fec72cbd21da6e78d553b9d6dee741 100644 (file)
@@ -226,4 +226,17 @@ class XMLOutputter
     {
         $this->xw->writeRaw($xml);
     }
+
+    /**
+     * output a comment
+     *
+     * @param string $txt text of the comment
+     *
+     * @return void
+     */
+
+    function comment($txt)
+    {
+        $this->xw->writeComment($txt);
+    }
 }