File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -800,13 +800,18 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
800
800
if ((flag & PHP_INFO_CREDITS ) && !sapi_module .phpinfo_as_text ) {
801
801
php_info_print_hr ();
802
802
php_info_print ("<script>(function () {\n" );
803
- php_info_print ("'use strict';\n" );
803
+ php_info_print (" 'use strict';\n" );
804
804
php_info_print (" window.onload = function () {\n" );
805
- php_info_print (" document.getElementById('credits').style.display = 'none';\n" );
806
- php_info_print (" document.getElementById('revealcredits').style.display = 'block';\n" );
807
- php_info_print (" document.getElementById('revealcredits').onclick = function () {\n" );
808
- php_info_print (" document.getElementById('credits').style.display = 'block';\n" );
809
- php_info_print (" document.getElementById('revealcredits').style.display = 'none';\n" );
805
+ php_info_print (" var credits, reveal;\n" );
806
+ php_info_print ("\n" );
807
+ php_info_print (" credits = document.getElementById('credits');\n" );
808
+ php_info_print (" reveal = document.getElementById('revealcredits');\n" );
809
+ php_info_print ("\n" );
810
+ php_info_print (" credits.style.display = 'none';\n" );
811
+ php_info_print (" reveal.style.display = 'block';\n" );
812
+ php_info_print (" reveal.onclick = function () {\n" );
813
+ php_info_print (" credits.style.display = 'block';\n" );
814
+ php_info_print (" reveal.style.display = 'none';\n" );
810
815
php_info_print (" };\n" );
811
816
php_info_print (" };\n" );
812
817
php_info_print ("}());</script>\n" );
You can’t perform that action at this time.
0 commit comments