GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c8fe68f
)
listing limit jen u vybranych trid
author
Thomas Mudrunka
<tomas@mudrunka.cz>
Mon, 16 Apr 2012 07:18:58 +0000
(09:18 +0200)
committer
Thomas Mudrunka
<tomas@mudrunka.cz>
Mon, 16 Apr 2012 07:18:58 +0000
(09:18 +0200)
index.php
patch
|
blob
|
blame
|
history
diff --git
a/index.php
b/index.php
index 768a1845c7b1ba300ce4b385a09f458173a520db..06dd1bf69c31a4f809082503b56846378541a39d 100755
(executable)
--- a/
index.php
+++ b/
index.php
@@
-1045,6
+1045,8
@@
class Sklad_UI {
}
function process_http_request() {
}
function process_http_request() {
+ $listing_limit_classes = array('item','model');
+
$this->check_auth();
@ini_set('magic_quotes_gpc' , 'off');
$this->check_auth();
@ini_set('magic_quotes_gpc' , 'off');
@@
-1099,7
+1101,7
@@
class Sklad_UI {
$edit=true;
default: //?/?/?
$history = $PATH_CHUNKS[3] == 'history' ? true : false;
$edit=true;
default: //?/?/?
$history = $PATH_CHUNKS[3] == 'history' ? true : false;
- $limit = is_numeric($PATH_CHUNKS[3]) ? (int) $PATH_CHUNKS[3] :
FRONTEND_LISTING_LIMIT
;
+ $limit = is_numeric($PATH_CHUNKS[3]) ? (int) $PATH_CHUNKS[3] :
(in_array($class, $listing_limit_classes) ? FRONTEND_LISTING_LIMIT : 0)
;
$offset = isset($PATH_CHUNKS[4]) ? (int) $PATH_CHUNKS[4] : 0;
$where = @is_array($_GET['where']) ? $_GET['where'] : false;
echo $this->render_listing_extensions($class, $id, $limit, $offset, $edit, false);
$offset = isset($PATH_CHUNKS[4]) ? (int) $PATH_CHUNKS[4] : 0;
$where = @is_array($_GET['where']) ? $_GET['where'] : false;
echo $this->render_listing_extensions($class, $id, $limit, $offset, $edit, false);
This page took
0.153456 seconds
and
4
git commands to generate.