Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2014-01-31 20:33:15 +0400
committerBart Visscher <bartv@thisnet.nl>2014-01-31 20:33:15 +0400
commitf1c60c7f8b12180917828775fcf4ba82ba68d573 (patch)
treef94767f126a681fb6c37826dfa21584b0b88adde /lib/private/helper.php
parentd8ec7e270167594ed407b22cb9ae78b1501ca946 (diff)
Remove unused functions from OC_Helper
init_var and init_radio where only used in the installation template
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index 58bee9c6300..ce5708e2bb9 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -448,29 +448,6 @@ class OC_Helper {
*
*/
- //FIXME: should also check for value validation (i.e. the email is an email).
- public static function init_var($s, $d = "") {
- $r = $d;
- if (isset($_REQUEST[$s]) && !empty($_REQUEST[$s])) {
- $r = OC_Util::sanitizeHTML($_REQUEST[$s]);
- }
-
- return $r;
- }
-
- /**
- * returns "checked"-attribute if request contains selected radio element
- * OR if radio element is the default one -- maybe?
- *
- * @param string $s Name of radio-button element name
- * @param string $v Value of current radio-button element
- * @param string $d Value of default radio-button element
- */
- public static function init_radio($s, $v, $d) {
- if ((isset($_REQUEST[$s]) && $_REQUEST[$s] == $v) || (!isset($_REQUEST[$s]) && $v == $d))
- print "checked=\"checked\" ";
- }
-
/**
* detect if a given program is found in the search PATH
*