Skip to content

Commit

Permalink
Update OHMSObjectPlugin.php
Browse files Browse the repository at this point in the history
Updated $base_url variable so that it is https rather than http.
  • Loading branch information
libmanuk committed Sep 3, 2020
1 parent 34dfacf commit f4f2e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OHMSObjectPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function insertOHMSObject($text, $args)
$format = metadata('item', array('Dublin Core', 'Format'));
$plugin_path = realpath(__DIR__ . '/..');
$plugin_subpath = strstr($plugin_path, 'plugins');
$base_url="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/';
$base_url="https://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/';
$base_url=str_replace("/items/show/","","$base_url");

if ($theme == 'admin') {
Expand Down

0 comments on commit f4f2e2f

Please sign in to comment.