diff options
Diffstat (limited to 'apps/gallery/index.php')
-rwxr-xr-x[-rw-r--r--] | apps/gallery/index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gallery/index.php b/apps/gallery/index.php index 8c45cfb19fc..cc6faa1406b 100644..100755 --- a/apps/gallery/index.php +++ b/apps/gallery/index.php @@ -27,12 +27,12 @@ OC_Util::checkLoggedIn(); OC_Util::checkAppEnabled('gallery'); OC_App::setActiveNavigationEntry( 'gallery_index' ); -if (!file_exists(OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery')) { - mkdir(OC_Config::getValue("datadirectory").'/'. OC_User::getUser() .'/gallery'); +if (!file_exists(OC_Config::getValue("datadirectory").'/'. OCP\USER::getUser() .'/gallery')) { + mkdir(OC_Config::getValue("datadirectory").'/'. OCP\USER::getUser() .'/gallery'); } if (!isset($_GET['view'])) { - $result = OC_Gallery_Album::find(OC_User::getUser()); + $result = OC_Gallery_Album::find(OCP\USER::getUser()); $r = array(); while ($row = $result->fetchRow()) @@ -42,7 +42,7 @@ if (!isset($_GET['view'])) { $tmpl->assign('r', $r); $tmpl->printPage(); } else { - $result = OC_Gallery_Photo::findForAlbum(OC_User::getUser(), $_GET['view']); + $result = OC_Gallery_Photo::findForAlbum(OCP\USER::getUser(), $_GET['view']); $photos = array(); while ($p = $result->fetchRow()) |