]> source.dussan.org Git - nextcloud-server.git/commitdiff
some fixes for contacts, gallery and openid
authorGeorg Ehrke <dev@georgswebsite.de>
Sat, 19 May 2012 13:22:21 +0000 (15:22 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sat, 19 May 2012 13:22:21 +0000 (15:22 +0200)
apps/contacts/ajax/oc_photo.php
apps/gallery/lib/album.php
apps/user_openid/user.php

index 0fd978e325a420f81f00860c19629d1d1e7c5e72..085d2710f5fe2aa8d425d9e825657c9e5f24c032 100644 (file)
@@ -19,9 +19,6 @@
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  *
  */
-// Init owncloud
-require_once('lib/base.php');
-
 // Check if we are a user
 // Firefox and Konqueror tries to download application/json for me.  --Arthur
 OCP\JSON::setContentTypeHeader('text/plain');
index 27d40cdb91f8519351810d3e279d221198e4ea09..5f962f12f128beefc643b4b57f72e3a831e5f2ed 100644 (file)
@@ -21,8 +21,6 @@
 *
 */
 
-require_once('base.php');
-
 class OC_Gallery_Album {
        public static function create($owner, $name, $path){
                $stmt = OCP\DB::prepare('INSERT INTO *PREFIX*gallery_albums (uid_owner, album_name, album_path, parent_path) VALUES (?, ?, ?, ?)');
index 9f751da5edb01927326e2673eb05e62d7e915da7..392424795f837af7281aabbb83fabbbd7ef1f49c 100644 (file)
@@ -36,7 +36,6 @@ if($USERNAME=='' and isset($_SERVER['PHP_AUTH_USER'])){
 
 $RUNTIME_NOAPPS=true;
 $RUNTIME_NOAPPS=false;
-require_once '../../lib/base.php';
 OCP\App::checkAppEnabled('user_openid');
 
 if(!OCP\User::userExists($USERNAME)){