mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 19:32:15 +09:00
#19692159 improve install UI
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8311 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9076974a59
commit
f71f5b564e
48 changed files with 1555 additions and 4097 deletions
|
|
@ -993,6 +993,14 @@ class Context {
|
|||
return $file;
|
||||
}
|
||||
|
||||
function getAbsFileUrl($file) {
|
||||
$file = Context::normalizeFilePath($file);
|
||||
if(strpos($file,'./')===0) $file = dirname($_SERVER['SCRIPT_NAME']).'/'.substr($file,2);
|
||||
elseif(strpos($file,'../')===0) $file = Context::normalizeFilePath(dirname($_SERVER['SCRIPT_NAME'])."/{$file}");
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Add the js file
|
||||
**/
|
||||
|
|
@ -1016,11 +1024,11 @@ class Context {
|
|||
function unloadJsFile($file, $optimized = false, $targetie = '') {
|
||||
is_a($this,'Context')?$self=&$this:$self=&Context::getInstance();
|
||||
|
||||
$realfile = realpath($file);
|
||||
$realfile = $self->getAbsFileUrl($file);
|
||||
|
||||
foreach($self->js_files_map as $key=>$val) {
|
||||
list($_file, $_targetie) = explode("\t", $key);
|
||||
if(realpath($_file)==$realfile && $_targetie == $targetie) {
|
||||
if($self->getAbsFileUrl($_file)==$realfile && $_targetie == $targetie) {
|
||||
unset($self->js_files_map[$key]);
|
||||
return;
|
||||
}
|
||||
|
|
@ -1099,11 +1107,11 @@ class Context {
|
|||
function unloadCSSFile($file, $optimized = false, $media = 'all', $targetie = '') {
|
||||
is_a($this,'Context')?$self=&$this:$self=&Context::getInstance();
|
||||
|
||||
$realfile = realpath($file);
|
||||
$realfile = $self->getAbsFileUrl($file);
|
||||
|
||||
foreach($self->css_files_map as $key => $val) {
|
||||
list($_file, $_targetie, $_media) = explode("\t", $key);
|
||||
if(realpath($_file)==$realfile && $_media==$media && $_targetie==$targetie) {
|
||||
if($self->getAbsFileUrl($_file)==$realfile && $_media==$media && $_targetie==$targetie) {
|
||||
unset($self->css_files_map[$key]);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue