diff --git a/apps/gallery/ajax/cover.php b/apps/gallery/ajax/cover.php
index 33d913c60ace68672f582926d1bc62d62dd94bdb..375905ec52056d215353bec939c78129bf89cb85 100644
--- a/apps/gallery/ajax/cover.php
+++ b/apps/gallery/ajax/cover.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../../lib/base.php');
 
 function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height) { //$imgSrc is a FILE - Returns an image resource.
diff --git a/apps/gallery/ajax/createAlbum.php b/apps/gallery/ajax/createAlbum.php
index 93e3312d324f25ea242d243ce1a6b6c351bbe987..3a490bdc3bd35d83db91fd8c260202e978271f4f 100644
--- a/apps/gallery/ajax/createAlbum.php
+++ b/apps/gallery/ajax/createAlbum.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../../lib/base.php');
 
 if( !OC_User::isLoggedIn()){
diff --git a/apps/gallery/ajax/getAlbums.php b/apps/gallery/ajax/getAlbums.php
index 3fc1b7467e81fefc0cc54b08a90308abb2485381..6b551ac49d519d879dc911ffdc48747e56297edd 100644
--- a/apps/gallery/ajax/getAlbums.php
+++ b/apps/gallery/ajax/getAlbums.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../../lib/base.php');
 
 if (!OC_User::IsLoggedIn()) {
diff --git a/apps/gallery/ajax/getCovers.php b/apps/gallery/ajax/getCovers.php
index d649edaf14061f3005e10c77b2bc93e5c3fb28f1..d56bf6fa4b7e5ce3bec3b9ae0f774989cf80086b 100644
--- a/apps/gallery/ajax/getCovers.php
+++ b/apps/gallery/ajax/getCovers.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../../lib/base.php');
 
 function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height, $tgtImg, $shift) { 
diff --git a/apps/gallery/ajax/scanForAlbums.php b/apps/gallery/ajax/scanForAlbums.php
index 64832a113b65a6555e6cdf92c1445ef77bd3932c..a04ad62b1bff2e7be927b50ff9aea6337416f3f7 100644
--- a/apps/gallery/ajax/scanForAlbums.php
+++ b/apps/gallery/ajax/scanForAlbums.php
@@ -1,4 +1,4 @@
-<?
+<?php
 
 require_once('../../../lib/base.php');
 require_once('../lib_scanner.php');
diff --git a/apps/gallery/ajax/thumbnail.php b/apps/gallery/ajax/thumbnail.php
index b3501ab4af41fde46e271535dd40750c3f0e3ced..db428eeff34983f6b6f3ad45bcfd668429712ef1 100644
--- a/apps/gallery/ajax/thumbnail.php
+++ b/apps/gallery/ajax/thumbnail.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../../lib/base.php');
 
 function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height) { //$imgSrc is a FILE - Returns an image resource.
diff --git a/apps/gallery/appinfo/app.php b/apps/gallery/appinfo/app.php
index 2c72c29218ec51e1628a1faa7a42d58121bb4ae9..2d5d2ce2154f7e4f3f1fe3f4a1c824569523a867 100644
--- a/apps/gallery/appinfo/app.php
+++ b/apps/gallery/appinfo/app.php
@@ -1,4 +1,4 @@
-<?
+<?php
 OC_App::register(array(
   'order' => 20,
   'id' => 'gallery',
diff --git a/apps/gallery/index.php b/apps/gallery/index.php
index 29ec30b5b6e8a25a5562ec6c9cae670e6b860107..c8d5892e5552f0c20995b806a6f656a9af99acbc 100644
--- a/apps/gallery/index.php
+++ b/apps/gallery/index.php
@@ -1,4 +1,4 @@
-<?
+<?php
 require_once('../../lib/base.php');
 
 OC_Util::checkLoggedIn();
diff --git a/apps/gallery/lib_scanner.php b/apps/gallery/lib_scanner.php
index 5d88a08158a92d269293f511341ff5d82627469d..e9a022c606b13c1a61df0edc0677a5c5b612ca3e 100644
--- a/apps/gallery/lib_scanner.php
+++ b/apps/gallery/lib_scanner.php
@@ -1,4 +1,4 @@
-<?
+<?php
 
 require_once('base.php'); // base lib