diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php
index 5791662522a36f7dd040c8601fc9a279f073e4c8..929f8b7a2e302ffe44b4ac0f9989a6614feb451a 100644
--- a/apps/gallery/lib/scanner.php
+++ b/apps/gallery/lib/scanner.php
@@ -131,4 +131,3 @@ class OC_Gallery_Scanner {
 	}
 }
 
-?>
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php
index 54fbcfd0154775e89efd4a546ed73328e93d936b..dc5852733bd05afca58454b507ff5f9591853b82 100644
--- a/apps/gallery/templates/index.php
+++ b/apps/gallery/templates/index.php
@@ -18,7 +18,7 @@ $l = new OC_L10N('gallery');
 		<input type="button" id="g-settings-button" value="<?php echo $l->t('Settings');?>" onclick="javascript:settings();"/>
 	</div>
 	<div id="g-album-navigation">
-		<div class="crumb last" style="background-image:url('/owncloud/core/img/breadcrumb.png')">
+		<div class="crumb last" style="background-image:url('<?php echo OC::$WEBROOT;?>/core/img/breadcrumb.png')">
 			<a href="javascript:returnToElement(0);">main</a>
 		</div>
 	</div>