Skip to content

Instantly share code, notes, and snippets.

@airways
Created July 27, 2013 16:48
Show Gist options
  • Save airways/6095436 to your computer and use it in GitHub Desktop.
Save airways/6095436 to your computer and use it in GitHub Desktop.
Fix for pre EE 2.6
<?php
class PF_View extends View {
public function __construct(View $view)
{
if(!isset($this->EE)) $this->EE = &get_instance(); // <-- Add this line
$this->set_cp_theme($view->_theme);
}
public function head_title($title)
{
return parent::head_title(strip_tags($title));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment