Tarea #1026 -> Al mandar una dedicatoria, se queda la pantalla en blanco

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@127 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-27 15:09:49 +00:00
parent df973a8bf8
commit 437583c558

View File

@ -5,7 +5,7 @@
function bp_dedication_send_dedication_notification( $post_id, $to_user_email, $from_user_id ) {
function getTinyUrl($url) {
function bp_dedication_getTinyUrl($url) {
$tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
return $tinyurl;
}
@ -28,7 +28,7 @@ function bp_dedication_send_dedication_notification( $post_id, $to_user_email, $
$post_link = get_option('siteurl') . '/index.php';
$post_link = add_query_arg('refid', $enc_link, $post_link);
$post_link = getTinyUrl($post_link);
$post_link = bp_dedication_getTinyUrl($post_link);
/* Set up and send the message */
$subject = '[' . get_blog_option( 1, 'blogname' ) . '] ' . sprintf( __( '%s dedicated a song 2 u!', 'bp-dedication' ), stripslashes($sender_name) );