diff --git a/monstra/boot/actions.php b/monstra/boot/actions.php
index 7001d8b..f8d5ec7 100644
--- a/monstra/boot/actions.php
+++ b/monstra/boot/actions.php
@@ -3,5 +3,5 @@
/**
* Set meta generator
*/
- Action::add('theme_header', 'setMetaGenerator');
- function setMetaGenerator() { echo ''; }
\ No newline at end of file
+ Action::add('theme_meta', 'setMetaGenerator');
+ function setMetaGenerator() { echo ''; }
diff --git a/monstra/helpers/url.php b/monstra/helpers/url.php
index 8e3581b..277ff5a 100644
--- a/monstra/helpers/url.php
+++ b/monstra/helpers/url.php
@@ -93,7 +93,7 @@
* @return string
*/
public static function find($url) {
- $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';
+ $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';
$pos = strpos($url, $https);
if ($pos === false) { $url_output = Option::get('siteurl') . $url; } else { $url_output = $url; }
return $url_output;
@@ -110,7 +110,22 @@
* @return string
*/
public static function base() {
- $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';
+ $https = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') ? 'https://' : 'http://';
return $https . rtrim(rtrim($_SERVER['HTTP_HOST'], '\\/') . dirname($_SERVER['PHP_SELF']), '\\/');
}
- }
\ No newline at end of file
+
+
+ /**
+ * Gets current URL
+ *
+ *
+ * echo Url::current();
+ *
+ *
+ * @return string
+ */
+ public static function current() {
+ return (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
+ }
+
+ }
diff --git a/plugins/box/filesmanager/views/backend/index.view.php b/plugins/box/filesmanager/views/backend/index.view.php
index d0dcc84..1e51771 100755
--- a/plugins/box/filesmanager/views/backend/index.view.php
+++ b/plugins/box/filesmanager/views/backend/index.view.php
@@ -70,8 +70,8 @@