aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-08-15 08:49:19 +0200
committerkondou <kondou@ts.unde.re>2013-08-15 15:57:32 +0200
commit9c5416fe4a12acf5631b8822feb942143bf2408f (patch)
treea9d6297ae8400cdf73b1a48a22391c9fae3cced5 /core
parentb9f3bb24261961ead93fb76c1295066cfa666299 (diff)
downloadnextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.tar.gz
nextcloud-server-9c5416fe4a12acf5631b8822feb942143bf2408f.zip
Clean up \OC\Util
- Use camelCase - Add some phpdoc - Fix some indents - Use some more spacing
Diffstat (limited to 'core')
-rw-r--r--core/lostpassword/controller.php2
-rw-r--r--core/minimizer.php4
-rw-r--r--core/setup.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/core/lostpassword/controller.php b/core/lostpassword/controller.php
index 74a5be2b96f..f761e45d25f 100644
--- a/core/lostpassword/controller.php
+++ b/core/lostpassword/controller.php
@@ -42,7 +42,7 @@ class OC_Core_LostPassword_Controller {
}
if (OC_User::userExists($_POST['user']) && $continue) {
- $token = hash('sha256', OC_Util::generate_random_bytes(30).OC_Config::getValue('passwordsalt', ''));
+ $token = hash('sha256', OC_Util::generateRandomBytes(30).OC_Config::getValue('passwordsalt', ''));
OC_Preferences::setValue($_POST['user'], 'owncloud', 'lostpassword',
hash('sha256', $token)); // Hash the token again to prevent timing attacks
$email = OC_Preferences::getValue($_POST['user'], 'settings', 'email', '');
diff --git a/core/minimizer.php b/core/minimizer.php
index 4da9037c413..eeeddf86a81 100644
--- a/core/minimizer.php
+++ b/core/minimizer.php
@@ -5,11 +5,11 @@ OC_App::loadApps();
if ($service == 'core.css') {
$minimizer = new OC_Minimizer_CSS();
- $files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$core_styles);
+ $files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$coreStyles);
$minimizer->output($files, $service);
}
else if ($service == 'core.js') {
$minimizer = new OC_Minimizer_JS();
- $files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$core_scripts);
+ $files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$coreScripts);
$minimizer->output($files, $service);
}
diff --git a/core/setup.php b/core/setup.php
index 40e30db533a..1a2eac16030 100644
--- a/core/setup.php
+++ b/core/setup.php
@@ -33,8 +33,8 @@ $opts = array(
'hasOracle' => $hasOracle,
'hasMSSQL' => $hasMSSQL,
'directory' => $datadir,
- 'secureRNG' => OC_Util::secureRNG_available(),
- 'htaccessWorking' => OC_Util::ishtaccessworking(),
+ 'secureRNG' => OC_Util::secureRNGAvailable(),
+ 'htaccessWorking' => OC_Util::isHtaccessWorking(),
'vulnerableToNullByte' => $vulnerableToNullByte,
'errors' => array(),
);