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:
parent
67455583e5
commit
f7d1df2727
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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) {
|
||||
|
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user