Putting back SM_PATH the way it should be and eliminating chdir in the
[squirrelmail.git] / plugins / message_details / message_details_bottom.php
index 2c2eab8b7e6fe0e0b471b2371949a92f85c0de8b..1593abb3a4ace3e31294d43700a28fe20458a7b9 100644 (file)
@@ -10,7 +10,6 @@
  * $Id$
  */
 
-#chdir ('..');
 define('SM_PATH','../../');
 
 /* SquirrelMail required files. */
@@ -25,15 +24,15 @@ global $color, $uid_support;
 function CalcEntity($entString, $direction) {
     $result = $entString;
     if ($direction == -1) {
-         $pos = strrpos($entString,'.');
-         $result = substr($entString,0,$pos);
+        $pos = strrpos($entString,'.');
+        $result = substr($entString,0,$pos);
     }
 
     switch ($direction) {
        case 0:
           $pos = strrpos($entString,'.');
           if ($pos === false) {
-            $entString++;
+         $entString++;
             $result= $entString;
           } 
          else {