This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  35038dddb6fc285ad459a300f240e34ea0a6f4c0 (commit)
      from  cefd1bb5c50d685903dc3a740ef029765c740ef9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=35038dddb6fc285ad459a300f240e34ea0a6f4c0

commit 35038dddb6fc285ad459a300f240e34ea0a6f4c0
Author: Franck Villaume <franck.villa...@trivialdev.com>
Date:   Tue Oct 11 09:53:36 2016 +0200

    external link should be open in new window/tab

diff --git a/src/www/themes/funky/Theme.class.php 
b/src/www/themes/funky/Theme.class.php
index f39e47c..2b3ccda 100644
--- a/src/www/themes/funky/Theme.class.php
+++ b/src/www/themes/funky/Theme.class.php
@@ -230,7 +230,12 @@ class Theme_Funky extends Layout {
                        $attrs['class'] = 'tg-middle';
                        $attrs['style'] = 'width:'.$tabwidth.'%';
                        $return .= html_ao('td', $attrs);
-                       $return .= html_ao('a', array('href' => $TABS_DIRS[$i], 
'id' => md5($TABS_DIRS[$i])));
+                       $ahrefAttrs['id'] =  md5($TABS_DIRS[$i]);
+                       $ahrefAttrs['href'] = $TABS_DIRS[$i];
+                       if (preg_match('/^https?:\/\//', $TABS_DIRS[$i])) {
+                               $ahrefAttrs['target'] = '_blank';
+                       }
+                       $return .= html_ao('a', $ahrefAttrs);
                        $attrs = array();
                        if ($selected == $i)
                                $attrs['class'] = 'selected';

-----------------------------------------------------------------------

Summary of changes:
 src/www/themes/funky/Theme.class.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
Fusionforge-commits@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to