diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 14:29:34 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-01 14:29:34 +0200 |
commit | 3f9ac6405a4823349e30be1f9d874ce813ae53f0 (patch) | |
tree | db7591ceffba8fb1cbc33bda949471b5e62197be /apps/gallery | |
parent | 8a69116e94be36640896ae1503f53acc303c20df (diff) | |
download | nextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.tar.gz nextcloud-server-3f9ac6405a4823349e30be1f9d874ce813ae53f0.zip |
port some of the log call to the new public api
more to come
Diffstat (limited to 'apps/gallery')
-rw-r--r-- | apps/gallery/lib/hooks_handlers.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/lib/hooks_handlers.php b/apps/gallery/lib/hooks_handlers.php index 178d8f3da15..737c38c0593 100644 --- a/apps/gallery/lib/hooks_handlers.php +++ b/apps/gallery/lib/hooks_handlers.php @@ -52,7 +52,7 @@ class OC_Gallery_Hooks_Handlers { if ($new_album_name == '') $new_album_name = 'main'; - OC_Log::write(self::$APP_TAG, 'Creating new album '.$new_album_name, OC_Log::DEBUG); + OCP\Util::writeLog(self::$APP_TAG, 'Creating new album '.$new_album_name, OC_Log::DEBUG); OC_Gallery_Album::create(OC_User::getUser(), $new_album_name, $path); return OC_Gallery_Album::find(OC_User::getUser(), null, $path); @@ -110,7 +110,7 @@ class OC_Gallery_Hooks_Handlers { if ($olddir == '') $olddir = '/'; if ($newdir == '') $newdir = '/'; if (!self::isPhoto($newpath)) return; - OC_Log::write(self::$APP_TAG, 'Moving photo from '.$oldpath.' to '.$newpath, OC_Log::DEBUG); + OCP\Util::writeLog(self::$APP_TAG, 'Moving photo from '.$oldpath.' to '.$newpath, OC_Log::DEBUG); $album; $newAlbumId; $oldAlbumId; |