|
@@ -29,8 +29,7 @@ |
|
|
block discarded – undo |
|
29
|
29
|
*/ |
|
30
|
30
|
public function confirm(string $sQuestion, string $sYesScript, string $sNoScript): string |
|
31
|
31
|
{ |
|
32
|
|
- return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : |
|
33
|
|
- 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
|
32
|
+ return empty($sNoScript) ? 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}' : 'if(confirm(' . $sQuestion . ')){' . $sYesScript . ';}else{' . $sNoScript . ';}'; |
|
34
|
33
|
} |
|
35
|
34
|
|
|
36
|
35
|
/** |
Please login to merge, or discard this patch.