both of those into 2.2

git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@775 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-04-07 23:18:32 +00:00
parent 67455583e5
commit f7d1df2727
4 changed files with 4 additions and 9 deletions

View File

@ -36,11 +36,7 @@ class ArchiveFileHandler extends Extension {
private function supported_ext($ext) {
$exts = array("zip");
$ext = strtolower($ext);
foreach($exts as $supported) {
if($ext == $supported) return true;
}
return false;
return array_contains($exts, strtolower($ext));
}
// copied from bulk add extension

View File

@ -36,6 +36,7 @@ EOD
<div class='space'>
<form action='".make_link("post/list")."' method='GET'>
<input id='search_input' name='search' size='55' type='text' value='' autocomplete='off' /><br/>
<input type='hidden' name='q' value='/post/list'>
<input type='submit' value='Search'/>
</form>
</div>

View File

@ -44,10 +44,7 @@ class PixelFileHandler extends Extension {
private function supported_ext($ext) {
$exts = array("jpg", "jpeg", "gif", "png");
foreach($exts as $supported) {
if($ext == $supported) return true;
}
return false;
return array_contains($exts, strtolower($ext));
}
private function create_image_from_data($filename, $metadata) {

View File

@ -64,6 +64,7 @@ class IndexTheme extends Themelet {
<p><form action='$h_search_link' method='GET'>
<input id='search_input' name='search' type='text'
value='$h_search_string' autocomplete='off' />
<input type='hidden' name='q' value='/post/list'>
<input type='submit' value='Find' style='display: none;' />
</form>
<div id='search_completions'></div>";