Plugin Directory

Changeset 927709


Ignore:
Timestamp:
06/06/2014 11:15:33 AM (12 years ago)
Author:
john ackers
Message:

allow two arguments (arg1,arg2) to be passed from dbview shortcode to query

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dbview/trunk/DBView.class.php

    r922203 r927709  
    443443    $this->dview = self::load1($name);
    444444    $this->pageSize = isset($_REQUEST['pageSize']) ? $_REQUEST['pageSize'] : 0 ; // no scroll by default
     445    $this->queryArgs = array();
     446    if (isset($_REQUEST['arg1'])) $this->queryArgs[] = $_REQUEST['arg1'];
     447    if (isset($_REQUEST['arg2'])) $this->queryArgs[] = $_REQUEST['arg2'];
    445448    $this->response->addUpdate(array("html"=>$this->view(true)));
    446449  }
Note: See TracChangeset for help on using the changeset viewer.