[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squirrelmail-cvs
Subject:    [SM-CVS] SF.net SVN: squirrelmail:[14314] trunk/squirrelmail/class/mime/Message. class.php
From:       kink () users ! sourceforge ! net
Date:       2012-04-07 15:17:48
Message-ID: E1SGXOe-0001Sh-A9 () sfp-svn-1 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 14314
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14314&view=rev
Author:   kink
Date:     2012-04-07 15:17:48 +0000 (Sat, 07 Apr 2012)
Log Message:
-----------
functions are only used statically. mark as such.

Modified Paths:
--------------
    trunk/squirrelmail/class/mime/Message.class.php

Modified: trunk/squirrelmail/class/mime/Message.class.php
===================================================================
--- trunk/squirrelmail/class/mime/Message.class.php	2012-04-07 15:16:09 UTC (rev \
                14313)
+++ trunk/squirrelmail/class/mime/Message.class.php	2012-04-07 15:17:48 UTC (rev \
14314) @@ -292,7 +292,7 @@
      * @return object Message object
      * @todo define argument and return types
      */
-    function parseStructure($read, &$i, $sub_msg = '') {
+    static function parseStructure($read, &$i, $sub_msg = '') {
         $msg = Message::parseBodyStructure($read, $i, $sub_msg);
         if($msg) $msg->setEntIds($msg,false,0);
         return $msg;
@@ -342,7 +342,7 @@
      * @todo document me
      * @since 1.4.0 (code was part of parseStructure() in 1.3.x)
      */
-    function parseBodyStructure($read, &$i, $sub_msg = '') {
+    static function parseBodyStructure($read, &$i, $sub_msg = '') {
         $arg_no = 0;
         $arg_a  = array();
         if ($sub_msg) {
@@ -368,7 +368,7 @@
                                 $msg->header->type0 = 'multipart';
                                 $msg->type0 = 'multipart';
                                 while ($read{$i} == '(') {
-                                    $msg->addEntity($msg->parseBodyStructure($read, \
$i, $msg)); +                                    \
$msg->addEntity(Message::parseBodyStructure($read, $i, $msg));  }
                             }
                             break;
@@ -403,7 +403,7 @@
                                 while (($i < $cnt) && ($read{$i} != '(')) {
                                     ++$i;
                                 }
-                                $msg->addEntity($msg->parseBodyStructure($read, \
$i,$msg)); +                                \
$msg->addEntity(Message::parseBodyStructure($read, $i,$msg));  }
                             break;
                         case 8:

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
                https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic