5 Oct 09:34
SF.net SVN: mantisbt:[5630] trunk/mantisbt
From: <vboctor@...>
Subject: SF.net SVN: mantisbt:[5630] trunk/mantisbt
Newsgroups: gmane.comp.bug-tracking.mantis.cvs
Date: 2008-10-05 07:37:59 GMT
Subject: SF.net SVN: mantisbt:[5630] trunk/mantisbt
Newsgroups: gmane.comp.bug-tracking.mantis.cvs
Date: 2008-10-05 07:37:59 GMT
Revision: 5630
http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5630&view=rev
Author: vboctor
Date: 2008-10-05 07:37:58 +0000 (Sun, 05 Oct 2008)
Log Message:
-----------
Fixed #9661: It should be possible to switch off short_url usage.
Modified Paths:
--------------
trunk/mantisbt/config_defaults_inc.php
trunk/mantisbt/permalink_page.php
Modified: trunk/mantisbt/config_defaults_inc.php
===================================================================
--- trunk/mantisbt/config_defaults_inc.php 2008-10-03 17:43:16 UTC (rev 5629)
+++ trunk/mantisbt/config_defaults_inc.php 2008-10-05 07:37:58 UTC (rev 5630)
@@ -1412,6 +1412,7 @@
$g_create_permalink_threshold = DEVELOPER;
# The service to use to create a short URL. The %s will be replaced by the long URL.
+ # To disable the feature set to ''.
$g_create_short_url = 'http://tinyurl.com/create.php?url=%s';
#######################################
Modified: trunk/mantisbt/permalink_page.php
===================================================================
--- trunk/mantisbt/permalink_page.php 2008-10-03 17:43:16 UTC (rev 5629)
+++ trunk/mantisbt/permalink_page.php 2008-10-05 07:37:58 UTC (rev 5630)
@@ -37,18 +37,20 @@
?>
<div align="center">
<p>
- <?php
- echo lang_get( 'filter_permalink' ), '<br />';
- echo "<a href=\"$f_url\">$f_url</a>"; ?></p><br />
<?php
+ echo lang_get( 'filter_permalink' ), '<br />';
+ echo "<a href=\"$f_url\">$f_url</a></p>";
- print_bracket_link(
- sprintf( config_get( 'create_short_url' ), $f_url ),
- lang_get( 'create_short_link' ),
- /* new window = */ true );
+ $t_create_short_url = config_get( 'create_short_url' );
+ if ( !is_blank( $t_create_short_url ) ) {
+ print_bracket_link(
+ sprintf( $t_create_short_url, $f_url ),
+ lang_get( 'create_short_link' ),
+ /* new window = */ true );
+ }
?>
</div>
<?php
html_page_bottom1( __FILE__ );
-?>
+?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
RSS Feed