summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php2
-rw-r--r--lib/cache.php6
-rw-r--r--lib/cache/fileglobal.php2
-rw-r--r--lib/legacy/cache.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/base.php b/lib/base.php
index fd31cfd9f29..0650361be91 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -570,7 +570,7 @@ class OC {
}
// NOTE: This will be replaced to use OCP
$userSession = \OC_User::getUserSession();
- $userSession->listen('postLogin', array('OC\Cache\File', 'loginListener'));
+ $userSession->listen('postLogin', '\OC\Cache\File', 'loginListener');
}
}
diff --git a/lib/cache.php b/lib/cache.php
index c99663a0ca5..a4fa8be710c 100644
--- a/lib/cache.php
+++ b/lib/cache.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-namespace OC\Cache;
+namespace OC;
class Cache {
/**
@@ -24,7 +24,7 @@ class Cache {
*/
static public function getGlobalCache() {
if (!self::$global_cache) {
- self::$global_cache = new FileGlobal();
+ self::$global_cache = new Cache\FileGlobal();
}
return self::$global_cache;
}
@@ -35,7 +35,7 @@ class Cache {
*/
static public function getUserCache() {
if (!self::$user_cache) {
- self::$user_cache = new File();
+ self::$user_cache = new Cache\File();
}
return self::$user_cache;
}
diff --git a/lib/cache/fileglobal.php b/lib/cache/fileglobal.php
index 9ca17402933..bd049bba4d0 100644
--- a/lib/cache/fileglobal.php
+++ b/lib/cache/fileglobal.php
@@ -10,7 +10,7 @@ namespace OC\Cache;
class FileGlobal {
static protected function getCacheDir() {
- $cache_dir = get_temp_dir().'/owncloud-'.OC_Util::getInstanceId().'/';
+ $cache_dir = get_temp_dir().'/owncloud-' . \OC_Util::getInstanceId().'/';
if (!is_dir($cache_dir)) {
mkdir($cache_dir);
}
diff --git a/lib/legacy/cache.php b/lib/legacy/cache.php
index 83b214170f7..f915eb516b1 100644
--- a/lib/legacy/cache.php
+++ b/lib/legacy/cache.php
@@ -6,5 +6,5 @@
* See the COPYING-README file.
*/
-class Cache extends OC\Cache {
+class OC_Cache extends \OC\Cache {
} \ No newline at end of file