Buenos días, estado viendo el código y veo que el código esta incompleto el ultimo if
Edit History
Buenos días, estado viendo el código y veo que el código esta incompleto el ultimo if.
{"payload":{"allShortcutsEnabled":false,"fileTree":{"config":{"items":[{"name":"services","path":"config/services","contentType":"directory"},{"name":"themes","path":"config/themes","contentType":"directory"},{"name":"xml","path":"config/xml","contentType":"directory" },{"nombre":".htaccess","ruta":"config/.htaccess","contentType":"archivo"},{"nombre":"alias.php","ruta":"config/alias.php","contentType":"archivo"},{"nombre":"autoload.php","ruta":"config/autoload.php","contentType":"file"},{"name":"bootstrap.php","path":"config/bootstrap.php","contentType":"file"},{"name":"config.inc.php","path":"config/config.inc.php","contentType":"file"},{"name":"db_slave_server.inc.php","path":"config/db_slave_server.inc.php","contentType": "archivo"},{"nombre":"defines.inc.php","ruta":"config/defines.inc.php","contentType":"archivo"},{"nombre":"defines_uri.inc.php","ruta":"config/defines_uri.inc.php","contentType":"archivo"},{"nombre":"index.php","ruta":"config/index.php","contentType":"file"},{"name":"smarty.config.inc.php","path":"config/smarty.config.inc.php","contentType":"file"},{"name":"smartyadmin.config.inc.php","path":"config/smartyadmin.config.inc.php","contentType":"file"},{"name":"smartyfront.config.inc.php","path":"config/ smartyfront.config.inc.php","contentType":"file"}],"totalCount":15},"":{"items":[{"name":".docker","path":".docker","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"admin-dev","ruta":"admin-dev","contentType":"directorio"},{"nombre":"aplicación","ruta":"aplicación","contentType":"directorio"},{"nombre":"bin","ruta":"bin","contentType":"directorio"},{"nombre":"caché","ruta":"caché","contentType":"directorio"},{"nombre":"clases","ruta":"clases","contentType":"directorio "},{"nombre":"config","ruta":"config","contentType":"directorio"},{"nombre":"controladores","ruta":"controladores","contentType":"directorio"},{"nombre":"docs","ruta":"docs","contentType":"directory"},{"name":"download","path":"download","contentType":"directory"},{"name":"img","path":"img","contentType":"directory"},{"name":"install-dev","path":"install-dev","contentType":"directory"},{"name":"jspath":"js","contentType":" directorio"},{"nombre":"localización","ruta":"localización","contentType":"directorio"},{"nombre":"correos","ruta":"correos","contentType":"directorio"},{"nombre":"módulos","ruta":"módulos","contentType":"directory"},{"name":"override","path":"override","contentType":"directory"},{"name":"pdf","path":"pdf","contentType":"directory"},{"name":"src","path":"src","contentType":"directory"},{"name":"templates","path":"templates","contentType":"directory "},{"nombre":"pruebas","ruta":"pruebas","tipo de contenido":"directorio"},{"nombre":"temas","ruta":"temas","tipo de contenido":"directorio"},{"nombre":"herramientas","ruta":"herramientas","contentType":"directorio"},{"nombre":"traducciones","ruta":"traducciones","contentType":"directorio"},{"nombre":"cargar","ruta":"cargar","contentType":"directorio"},{"nombre":"var","ruta":"var","contentType":"directorio"},{"nombre":"proveedor","ruta":"proveedor","contentType":"directorio"}, {"name":"webservice","path":"webservice","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitignore","ruta":".gitignore","contentType":"file"},{"name":".php-cs-fixer.dist.php","path":".php-cs-fixer.dist.php","contentType":"file"},{"name":".t9n.yml","path":".t9n.yml","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE _OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"CONTRIBUTORS.md","path":"CONTRIBUTORS.md","contentType":"file"},{"name":"INSTALL.txt","path":"INSTALL.txt","contentType":"file"},{"name":"LICENSE.md","path":"LICENSE.md","contentType":"file"},{"name":"Makefile","path":"Makefile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"autoload.php","path":"autoload.php","contentType" :"archivo"},{"nombre":"compositor.json","ruta":"compositor.json","contentType":"archivo"},{"nombre":"compositor.lock","ruta":"compositor.lock","contentType":"archivo"},{"nombre":"docker-compose.yml","ruta":"docker-compose.yml","contentType":"file"},{"name":"error500.html","path":"error500.html","contentType":"file"},{"name":"index.php","path":"index.php","contentType":"file"},{"name":"init.php","path":"init.php","contentType":"file"},{"name":"phpstan.neon.dist ","ruta":"phpstan.neon.dist","contentType":"file"}],"totalCount":48}},"fileTreeProcessingTime":11.115254,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":6763587,"defaultBranch":"develop","name":"PrestaShop","ownerLogin":"PrestaShop","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2012-11-19T16:41:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2815696?v=4","public":true,"private":false,"isOrgOwned ":true},"refInfo":{"name":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774","listCacheKey":"v0:1689954635.0","canEdit":false,"refType":"tree","currentOid":"8f4e58c9fafb10cdaa9fb1f858e 1098f40d9b774"},"ruta":"config/smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":[""isFork":false,"isEmpty":false,"createdAt":"2012-11-19T16:41:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2815696?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"8f4e5 8c9fafb10cdaa9fb1f858e1098f40d9b774","listCacheKey":"v0:1689954635.0","canEdit":false,"refType":"tree","currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config /smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":[""isFork":false,"isEmpty":false,"createdAt":"2012-11-19T16:41:31.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/2815696?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"8f4e5 8c9fafb10cdaa9fb1f858e1098f40d9b774","listCacheKey":"v0:1689954635.0","canEdit":false,"refType":"tree","currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config /smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":["githubusercontent.com/u/2815696?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774","listCacheKey":"v0:1689954635.0","canEdit": false,"refType":"tree","currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config/smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":["githubusercontent.com/u/2815696?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774","listCacheKey":"v0:1689954635.0","canEdit": false,"refType":"tree","currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config/smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":[""currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config/smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":[""currentOid":"8f4e58c9fafb10cdaa9fb1f858e1098f40d9b774"},"ruta":"config/smartyadmin.config.inc.php","currentUser":null,"blob":{"rawLines":[""," * @copyright desde 2007 PrestaShop SA y colaboradores"," * @license https://opensource.org/licenses/OSL-3.0 Licencia de software abierto (OSL 3.0)"," */","global $smarty;","$smarty->debugging = false;","$smarty->debugging_ctrl = 'NONE';","","// Permitir que el usuario elija forzar la compilación","$smarty->force_compile = (Configurar ción::get('PS_SMARTY_FORCE_COMPILE') == _PS_SMARTY_FORCE_COMPILE_) ? true : false;","// Pero fuerza compile_check ya que el impacto en el rendimiento es pequeño y es mejor para la depuración","$smarty->compile_check = true;","","smartyRegisterFunction($smarty, 'function', 'toolsConvertPrice', 'toolsConvertPrice');","smartyRegisterFunction($smarty, 'convertirYFormatearPrecio')); // usado dos veces","smartyRegisterFunction($smarty, 'function', 'getAdminToken', array('Tools', 'getAdminTokenLiteSmarty'));","smartyRegisterFunction($smarty, 'function', 'displayAddressDetail', array('AddressFormat', 'generateAddressSmarty'));","smartyRegisterFunction($smarty, 'function', 'getWid thSize', array('Imagen', 'getWidth'));","smartyRegisterFunction($smarty, 'function', 'getHeightSize', array('Image', 'getHeight'));","smartyRegisterFunction($smarty, 'function', 'addJsDef', array('Media', 'addJsDef'));","smartyRegisterFunction($smarty, 'block', 'add JsDefL', isset($params['js']);"," $addSlashes = (isset($params['slashes']) || isset($params['js']));"," $isInPDF = isset($params['pdf']);"," $isInModule = !empty($params['mod']);"," $sprintf = array();",""," if (isset($params['sprintf']) && !is_array($para ms['sprintf'])) {"," $sprintf = array($params['sprintf']);"," } elseif (isset($params['sprintf'])) {"," $sprintf = $params['sprintf'];"," }",""," if (($htmlEntities || $addSlashes)) {"," $sprintf['legacy'] = $htmlEntities ? 'htmlspecialchars': 'addslashes';"," }",""," if (!