diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:36:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-14 07:36:12 +0400 |
commit | 8c1f92be4291f1d76935ed34de88f5168faec88a (patch) | |
tree | a4fdadf26601374c364bb69cd1e42879775a0487 /misc | |
parent | 4fbe9960f50068a1ddc46c2780839999d7fea85e (diff) |
Adding UrlHelper containing random logic around manipulating urls
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cron/archive.php | 2 | ||||
-rw-r--r-- | misc/others/iframeWidget_localhost.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/misc/cron/archive.php b/misc/cron/archive.php index 7b8580dcea..2308c72723 100644 --- a/misc/cron/archive.php +++ b/misc/cron/archive.php @@ -801,7 +801,7 @@ class Archiving else { $piwikUrl = $this->isParameterSet("url", true); if (!$piwikUrl - || !Common::isLookLikeUrl($piwikUrl) + || !\Piwik\UrlHelper::isLookLikeUrl($piwikUrl) ) { $this->logFatalError("archive.php expects the argument --url to be set to your Piwik URL, for example: --url=http://example.org/piwik/ ", $backtrace = false); } diff --git a/misc/others/iframeWidget_localhost.php b/misc/others/iframeWidget_localhost.php index d83fb26c31..73bfc5c59b 100644 --- a/misc/others/iframeWidget_localhost.php +++ b/misc/others/iframeWidget_localhost.php @@ -1,8 +1,8 @@ <?php -use Piwik\Common; use Piwik\FrontController; -use Piwik\WidgetsList; use Piwik\Url; +use Piwik\UrlHelper; +use Piwik\WidgetsList; exit; $date = date('Y-m-d'); @@ -39,7 +39,7 @@ foreach ($widgets as $category => $widgetsInCategory) { echo '<h2>' . $category . '</h2>'; foreach ($widgetsInCategory as $widget) { echo '<h3>' . $widget['name'] . '</h3>'; - $widgetUrl = Common::getArrayFromQueryString($url); + $widgetUrl = UrlHelper::getArrayFromQueryString($url); $widgetUrl['moduleToWidgetize'] = $widget['parameters']['module']; $widgetUrl['actionToWidgetize'] = $widget['parameters']['action']; $parameters = $widget['parameters']; |