Empty commit

This commit is contained in:
Git 2012-06-25 08:00:10 +00:00
parent ce6be7185e
commit ac922a526a
4 changed files with 13 additions and 3 deletions

View File

@ -60,8 +60,7 @@ function cleanImgurUrl($url) {
$extension = pathinfo($url, PATHINFO_EXTENSION);
$path = preg_replace('/\.[^.]*$/', '', $url);
$last = $path[strlen($path)-1];
if($last == 'm' || $last == 'l' || $last == 's' || $last == 'b') {
if($last == 'm' || $last == 's' || $last == 'b') {
$path = substr($path, 0, -1);
}
return $path . "." . $extension;

View File

@ -20,7 +20,8 @@ class TEXT {
//':\\' => 'hmm.gif',
':whatlove:' => 'ilu.gif',
':lol:' => 'laughing.gif',
':loveflac:' => 'loveflac.gif',
':loveflac:' => 'loveflac.gif',
':flaclove:' => 'loveflac.gif',
':ninja:' => 'ninja.gif',
':no:' => 'no.gif',
':nod:' => 'nod.gif',

View File

@ -408,6 +408,7 @@ function show() {
}
?>
</select>
<b id="format_warning" style="color:red"></b>
</td>
</tr>
<tr>

View File

@ -25,6 +25,15 @@ function Format() {
$('#bitrate').raw()[0].selected = true;
$('#upload_logs').hide();
}
if($('#format').raw().options[$('#format').raw().selectedIndex].value == 'AAC') {
$('#format_warning').raw().innerHTML = 'Lossy AAC torrents may only be uploaded when they represent exclusive content not currently available in any other format. <a href="rules.php?p=upload#r2.1.24">(2.1.24)</a>';
}
else {
$('#format_warning').raw().innerHTML = '';
}
}
function Bitrate() {