Skip to content

Instantly share code, notes, and snippets.

@Crizz0
Created April 15, 2014 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Crizz0/10770814 to your computer and use it in GitHub Desktop.
Save Crizz0/10770814 to your computer and use it in GitHub Desktop.
public function add_simpleimprint_viewonline($event)
{
global $forum_data;
$route = $this->helper->generate_router();
$event['location_url'] = $route->get_url();
if($event['location_url'] == ('/imprint.php' || 'app.php/imprint' || '/imprint' )
{
$event['location'] = $this->user->lang('VIEWONLINE_SIMPLEIMPRINT');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment