some fixes for contacts, gallery and openid

remotes/origin/stable4
Georg Ehrke 14 years ago
parent 07fa8da278
commit d4072c82dd
  1. 3
      apps/contacts/ajax/oc_photo.php
  2. 2
      apps/gallery/lib/album.php
  3. 1
      apps/user_openid/user.php

@ -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');

@ -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 (?, ?, ?, ?)');

@ -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)){

Loading…
Cancel
Save