<div dir="ltr"><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">I use Vtiger_Link a ton these days now that I have context menus, so I found myself wanting to use inheritance to set up my link handler classes.  Unfortunately, the existing code only made static calls, so I did away with that!  I changed all our custom code to be non-static, but it still seems to  work for stock ModTracker even though I have left that static method alone.</font></pre>
<pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">Index: html/vtlib/Vtiger/Link.php
===================================================================
--- html/vtlib/Vtiger/Link.php  (revision 4175)
+++ html/vtlib/Vtiger/Link.php  (revision 4451)
@@ -226,5 +226,6 @@
                                require_once $row['handler_path'];
                                $linkData = new Vtiger_LinkData($instance, $current_user);
-                               $ignore = call_user_func(array($row['handler_class'], $row['handler']), $linkData);
+                               $handler_obj = new $row['handler_class'];
+                               $ignore = call_user_func(array($handler_obj, $row['handler']), $linkData);
                                if(!$ignore) {
                                        self::log("Ignoring Link ... ".var_export($row, true));</pre></div>