mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 13:54:59 +02:00
a few styleguide fixes
This commit is contained in:
parent
72b30e3e45
commit
3f29e4ebea
@ -182,8 +182,8 @@ class OC_Util {
|
||||
* @description load the version.php into the session as cache
|
||||
*/
|
||||
private static function loadVersion() {
|
||||
$timestamp=filemtime(OC::$SERVERROOT.'/version.php');
|
||||
if(!\OC::$server->getSession()->exists('OC_Version') or OC::$server->getSession()->get('OC_Version_Timestamp')<>$timestamp) {
|
||||
$timestamp = filemtime(OC::$SERVERROOT.'/version.php');
|
||||
if(!\OC::$server->getSession()->exists('OC_Version') or OC::$server->getSession()->get('OC_Version_Timestamp') != $timestamp) {
|
||||
require 'version.php';
|
||||
$session = \OC::$server->getSession();
|
||||
/** @var $timestamp int */
|
||||
|
Loading…
Reference in New Issue
Block a user