summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-04-19 14:00:47 +0200
committeremkael <emkael@tlen.pl>2016-04-19 14:00:47 +0200
commitf4fe6aa543de23058a808c105a715e73d67c4748 (patch)
tree732148c59117fb0d968d1f66fa0f5b89f1598dac /app/php
parentf533a1d313eb2121c156bf7a25b338e686afa00b (diff)
* reading web base path from custom Prado namespace
Diffstat (limited to 'app/php')
-rw-r--r--app/php/components/ClientScriptManager.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/php/components/ClientScriptManager.php b/app/php/components/ClientScriptManager.php
index 8289c69..ce3446c 100644
--- a/app/php/components/ClientScriptManager.php
+++ b/app/php/components/ClientScriptManager.php
@@ -9,12 +9,7 @@ class ClientScriptManager extends TClientScriptManager {
}
private function _getBasePath() {
- $assetManager = $this->Application->AssetManager;
- return preg_replace(
- '#' . preg_quote($assetManager->BaseUrl) . '$#',
- '',
- $assetManager->BasePath
- );
+ return Prado::getPathOfNamespace('Web') . DIRECTORY_SEPARATOR;
}
private function _getBasePaths($urls) {