diff options
| -rw-r--r-- | view.php | 4 | ||||
| -rw-r--r-- | view_image.php | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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' ); |
