Jump to content

Upgrade 3.0.10 trouble


OllieMackJames
 Share

Recommended Posts

Here's what I did.

/*
		if(strlen($this->input->get->include) && $this->input->get->include !== 'hidden') {
			if($this->input->get->include === 'all') {
				if(!$this->user->isSuperuser()) $this->errors[] = "The option 'include=all' is only allowed for administrators"; 
			} else {
				$this->errors[] = "Unrecognized value for 'include'";	
			}
		}
*/	
		//SB replaces above which FileCompiler thinks is a including a file
		$ginc = $this->input->get->include;
		if(strlen($ginc) && $ginc !== 'hidden') {
			if($ginc === 'all') {
				if(!$this->user->isSuperuser()) $this->errors[] = "The option 'include=all' is only allowed for administrators"; 
			} else {
				$this->errors[] = "Unrecognized value for 'include'";	
			}
		}
  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...