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) {
|
private function supported_ext($ext) {
|
||||||
$exts = array("zip");
|
$exts = array("zip");
|
||||||
$ext = strtolower($ext);
|
return array_contains($exts, strtolower($ext));
|
||||||
foreach($exts as $supported) {
|
|
||||||
if($ext == $supported) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// copied from bulk add extension
|
// copied from bulk add extension
|
||||||
|
@ -36,6 +36,7 @@ EOD
|
|||||||
<div class='space'>
|
<div class='space'>
|
||||||
<form action='".make_link("post/list")."' method='GET'>
|
<form action='".make_link("post/list")."' method='GET'>
|
||||||
<input id='search_input' name='search' size='55' type='text' value='' autocomplete='off' /><br/>
|
<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'/>
|
<input type='submit' value='Search'/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,10 +44,7 @@ class PixelFileHandler extends Extension {
|
|||||||
|
|
||||||
private function supported_ext($ext) {
|
private function supported_ext($ext) {
|
||||||
$exts = array("jpg", "jpeg", "gif", "png");
|
$exts = array("jpg", "jpeg", "gif", "png");
|
||||||
foreach($exts as $supported) {
|
return array_contains($exts, strtolower($ext));
|
||||||
if($ext == $supported) return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function create_image_from_data($filename, $metadata) {
|
private function create_image_from_data($filename, $metadata) {
|
||||||
|
@ -64,6 +64,7 @@ class IndexTheme extends Themelet {
|
|||||||
<p><form action='$h_search_link' method='GET'>
|
<p><form action='$h_search_link' method='GET'>
|
||||||
<input id='search_input' name='search' type='text'
|
<input id='search_input' name='search' type='text'
|
||||||
value='$h_search_string' autocomplete='off' />
|
value='$h_search_string' autocomplete='off' />
|
||||||
|
<input type='hidden' name='q' value='/post/list'>
|
||||||
<input type='submit' value='Find' style='display: none;' />
|
<input type='submit' value='Find' style='display: none;' />
|
||||||
</form>
|
</form>
|
||||||
<div id='search_completions'></div>";
|
<div id='search_completions'></div>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user