diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-08-26 07:11:08 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-08-26 07:11:08 +0000 |
| commit | 6d71bc7447d0638e0e49a0c10bee08f798444fd7 (patch) | |
| tree | 1178174a1c4f6a0005dfc9560636ac32fb9d2a6f /modules_v3/individuals/module.php | |
| parent | b867a8e7dd2e6d479bb0de4844eb3dc9d4d58399 (diff) | |
| download | webtrees-6d71bc7447d0638e0e49a0c10bee08f798444fd7.tar.gz webtrees-6d71bc7447d0638e0e49a0c10bee08f798444fd7.tar.bz2 webtrees-6d71bc7447d0638e0e49a0c10bee08f798444fd7.zip | |
Remove some unused code from individuals/families sidebar. It seems to be trying to remember the state of the sidebar between calls - but this has never worked, and I am not sure we'd really want it...
Diffstat (limited to 'modules_v3/individuals/module.php')
| -rw-r--r-- | modules_v3/individuals/module.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/modules_v3/individuals/module.php b/modules_v3/individuals/module.php index 87fc1b213d..2a11f7a418 100644 --- a/modules_v3/individuals/module.php +++ b/modules_v3/individuals/module.php @@ -70,9 +70,6 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { $surname =safe_GET('surname', '[^<>&%{};]*'); // All indis with this surname. NB - allow ' and " $search =safe_GET('search'); - $last = array('alpha'=>$alpha, 'surname'=>$surname, 'search'=>$search); - $_SESSION['sb_individuals_last'] = $last; - if ($search) { return $this->search($search); } elseif ($alpha=='@' || $alpha==',' || $surname) { @@ -163,21 +160,6 @@ class individuals_WT_Module extends WT_Module implements WT_Module_Sidebar { $out .= '</p>'; $out .= '<div id="sb_indi_content">'; - - if (isset($_SESSION['sb_individuals_last'])) { - $alpha = $_SESSION['sb_individuals_last']['alpha']; - $search = $_SESSION['sb_individuals_last']['search']; - $surname = $_SESSION['sb_individuals_last']['surname']; - - if ($search) { - $out.=$this->search($search); - } elseif ($alpha=='@' || $alpha==',' || $surname) { - $out.=$this->getSurnameIndis($alpha, $surname); - } elseif ($alpha) { - $out.=$this->getAlphaSurnames($alpha, $surname); - } - } - $out .= '</div></form>'; return $out; } |
