Skip to content

Commit

Permalink
Adding URL helper to package.
Browse files Browse the repository at this point in the history
  • Loading branch information
brodkin committed Jan 24, 2012
1 parent cad88b6 commit 6b4349d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/glib_url_helper.php
@@ -0,0 +1,8 @@
<?php

function gravatar_url ($email,$size,$default,$rating=false)
{
$email = md5( strtolower( trim( $email ) ) );

return "https://secure.gravatar.com/avatar/$email?s=$size&d=$default&r=$rating";
}

0 comments on commit 6b4349d

Please sign in to comment.