Code Duplication    Length = 5-7 lines in 5 locations

Sources/PersonalMessage.php 1 location

@@ 214-220 (lines=7) @@
211
		$_REQUEST['sa'] = '';
212
		MessageFolder();
213
	}
214
	else
215
	{
216
		if (!isset($_REQUEST['xml']) && $_REQUEST['sa'] != 'popup')
217
			messageIndexBar($_REQUEST['sa']);
218
219
		call_helper($subActions[$_REQUEST['sa']]);
220
	}
221
}
222
223
/**

Sources/Reminder.php 1 location

@@ 41-46 (lines=6) @@
38
	);
39
40
	// Any subaction?  If none, fall through to the main template, which will ask for one.
41
	if (isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]))
42
		call_helper($subActions[$_REQUEST['sa']]);
43
44
	// Creating a one time token.
45
	else
46
		createToken('remind');
47
}
48
49
/**

Sources/SplitTopics.php 2 locations

@@ 53-57 (lines=5) @@
50
	);
51
52
	// ?action=splittopics;sa=LETSBREAKIT won't work, sorry.
53
	if (empty($_REQUEST['sa']) || !isset($subActions[$_REQUEST['sa']]))
54
		SplitIndex();
55
56
	else
57
		call_helper($subActions[$_REQUEST['sa']]);
58
}
59
60
/**
@@ 815-819 (lines=5) @@
812
	);
813
814
	// ?action=mergetopics;sa=LETSBREAKIT won't work, sorry.
815
	if (empty($_REQUEST['sa']) || !isset($subActions[$_REQUEST['sa']]))
816
		MergeIndex();
817
818
	else
819
		call_helper($subActions[$_REQUEST['sa']]);
820
}
821
822
/**

Sources/Themes.php 1 location

@@ 106-110 (lines=5) @@
103
	cache_put_data('minimized_css', null);
104
105
	// Follow the sa or just go to administration.
106
	if (isset($_GET['sa']) && !empty($subActions[$_GET['sa']]))
107
		call_helper($subActions[$_GET['sa']]);
108
109
	else
110
		call_helper($subActions['admin']);
111
}
112
113
/**