Get ready for next version
[platal.git] / plugins / function.display_education.php
index 8b9fdf7..143c474 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2011 Polytechnique.org                              *
+ *  Copyright (C) 2003-2013 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -32,7 +32,7 @@ function display_education($name, $url, $degree, $gradYear, $field, $program, $f
         }
     }
     if ($url != '') {
-        $txt .= '<a href="' . $url . '" onclick="return popup(this)">' . $name . '</a>';
+        $txt .= '<a href="' . $url . '" target="_blank">' . $name . '</a>';
     } else {
         $txt .= $name;
     }
@@ -65,7 +65,7 @@ function display_education($name, $url, $degree, $gradYear, $field, $program, $f
     return $txt;
 }
 
-function smarty_function_display_education($params, &$smarty)
+function smarty_function_display_education($params, $smarty)
 {
     $params = new PlDict($params);
     $edu = $params->v('edu');