summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/php/web/ClientScriptManager.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/php/web/ClientScriptManager.php b/app/php/web/ClientScriptManager.php
index f43ac02..749bbcc 100644
--- a/app/php/web/ClientScriptManager.php
+++ b/app/php/web/ClientScriptManager.php
@@ -117,7 +117,7 @@ class ClientScriptManager extends TClientScriptManager {
);
}
- private function _compileFiles($files) {
+ private function _compileScriptFiles($files) {
foreach ($files as $file) {
$this->markScriptFileAsRendered($file);
}
@@ -158,7 +158,7 @@ class ClientScriptManager extends TClientScriptManager {
private function _renderLocalScriptFiles($writer, $localFiles) {
if ($localFiles) {
- $assetPath = $this->_compileFiles($localFiles);
+ $assetPath = $this->_compileScriptFiles($localFiles);
$writer->write(TJavascript::renderScriptFile($assetPath));
}
}
@@ -224,15 +224,14 @@ class ClientScriptManager extends TClientScriptManager {
$newLocalScripts = $this->_determineLocalScriptFiles($newScripts);
$newRemoteScripts = array_diff($newScripts, $newLocalScripts);
if ($newLocalScripts) {
- $scriptUrls[] = $this->_compileFiles($newLocalScripts);
+ $scriptUrls[] = $this->_compileScriptFiles($newLocalScripts);
}
$scriptUrls = array_values(
array_unique(array_merge($scriptUrls, $newRemoteScripts))
);
return $scriptUrls;
- } else {
- return parent::getScriptUrls();
}
+ return parent::getScriptUrls();
}
private $_scripts = [];