Commit d3dae87c authored by Sigrid Suski's avatar Sigrid Suski

transferring override settings now via request

parent d80317f3
......@@ -17,6 +17,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*/
use Sobi\Input\Input;
defined( 'SOBIPRO' ) || exit( 'Restricted access' );
SPLoader::loadView( 'section' );
......@@ -126,8 +128,9 @@ class SPListingView extends SPSectionView implements SPView
* @throws SPException
* @throws \Sobi\Error\Exception
*/
public function display( $type = 'listing', $out = null, $override = null )
public function display( $type = 'listing', $out = null)
{
$override = Input::String( 'override' ) ? Input::String( 'override' ) : null;
$this->_type = $type;
switch ( $type ) {
case 'listing':
......
......@@ -35,6 +35,8 @@ class SPSectionView extends SPFrontView implements SPView
* @param bool $fields
*
* @return array|bool|mixed
* @throws SPException
* @throws \Sobi\Error\Exception
*/
protected function category( $category, $fields = true )
{
......@@ -658,8 +660,9 @@ class SPSectionView extends SPFrontView implements SPView
* @throws SPException
* @throws \Sobi\Error\Exception
*/
public function display( $type = 'section', $out = null, $override = null )
public function display( $type = 'section', $out = null )
{
$override = Input::String( 'override' ) ? Input::String( 'override' ) : null;
$this->_type = $type;
switch ( $this->get( 'task' ) ) {
case 'view':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment