mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Adjustment to yesterday's FileCompiler updates that corrects a case where wire() function calls are used within include() statements
This commit is contained in:
@@ -439,7 +439,9 @@ class FileCompiler extends Wire {
|
||||
$this->initRawPHP($data);
|
||||
|
||||
if($this->options['includes']) {
|
||||
$dataHash = md5($data);
|
||||
$this->compileIncludes($data, $sourceFile);
|
||||
if(md5($data) != $dataHash) $this->initRawPHP($data);
|
||||
}
|
||||
|
||||
if($this->options['namespace']) {
|
||||
@@ -758,7 +760,7 @@ class FileCompiler extends Wire {
|
||||
}
|
||||
|
||||
if($testFile) {
|
||||
if(strpos($testFile, '.')) {
|
||||
if(strrpos($testFile, '.')) {
|
||||
// test contains a filename that needs extension validated
|
||||
$parts = explode('.', $testFile);
|
||||
$testExt = array_pop($parts);
|
||||
|
@@ -414,7 +414,7 @@ if(typeof ProcessWire != "undefined") {
|
||||
alert("prompt function requires vex");
|
||||
return;
|
||||
}
|
||||
vex.dialog.prompt({
|
||||
return vex.dialog.prompt({
|
||||
message: message,
|
||||
placeholder: placeholder,
|
||||
callback: func
|
||||
|
2
wire/templates-admin/scripts/main.min.js
vendored
2
wire/templates-admin/scripts/main.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user