summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--view.php4
-rw-r--r--view_image.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/view.php b/view.php
index deb783a..fb9f882 100644
--- a/view.php
+++ b/view.php
@@ -20,6 +20,10 @@ global $gBitSystem, $fisheyeErrors, $fisheyeWarnings, $fisheyeSuccess;
include_once( FISHEYE_PKG_PATH.'gallery_lookup_inc.php' );
+if( $gContent && $gContent->isValid() ) {
+ $gBitSystem->setCanonicalLink( $gContent->getDisplayUri() );
+}
+
global $gHideModules;
$gHideModules = $gBitSystem->isFeatureActive( 'fisheye_gallery_hide_modules' );
diff --git a/view_image.php b/view_image.php
index 565bcd6..a8302a8 100644
--- a/view_image.php
+++ b/view_image.php
@@ -27,6 +27,10 @@ if( !empty( $_REQUEST['refresh'] ) ) {
include_once( FISHEYE_PKG_PATH.'image_lookup_inc.php' );
+if( $gContent && $gContent->isValid() ) {
+ $gBitSystem->setCanonicalLink( $gContent->getDisplayUri() );
+}
+
global $gHideModules;
$gHideModules = $gBitSystem->isFeatureActive( 'fisheye_image_hide_modules' );