includes/comment.php
changeset 345 4ccdfeee9a11
parent 334 c72b545f1304
child 359 e0787bb6285b
--- a/includes/comment.php	Mon Dec 31 21:43:51 2007 -0500
+++ b/includes/comment.php	Thu Jan 03 00:53:33 2008 -0500
@@ -64,15 +64,6 @@
   }
   
   /**
-   * PHP 4 constructor.
-   * @see Comments::__construct
-   */
-  function Comments($page_id, $namespace)
-  {
-    $this->__construct($page_id, $namespace);
-  }
-  
-  /**
    * Processes a command in JSON format.
    * @param string The JSON-encoded input, probably something sent from the Javascript/AJAX frontend
    */
@@ -151,7 +142,7 @@
             }
             
             // Format date
-            $row['time'] = date('F d, Y h:i a', $row['time']);
+            $row['time'] = enano_date('F d, Y h:i a', $row['time']);
             
             // Format signature
             $row['signature'] = ( !empty($row['signature']) ) ? RenderMan::render($row['signature']) : '';
@@ -293,7 +284,7 @@
           $text = RenderMan::render($text);
           $appr = ( getConfig('approve_comments') == '1' ) ? '0' : '1';
           $time = time();
-          $date = date('F d, Y h:i a', $time);
+          $date = enano_date('F d, Y h:i a', $time);
           
           // Send it to the database
           $q = $db->sql_query('INSERT INTO '.table_prefix.'comments(page_id,namespace,name,subject,comment_data,approved, time, user_id) VALUES' .