User 'bricobq144' has exceeded the 'max_questions' resource (current value: 40000)<br /><br /><pre>SELECT * FROM `ps_currency` c ORDER BY `iso_code` ASC</pre>
at line 769 in file classes/db/Db.php
764. if ($webservice_call && $errno) {
765. $dbg = debug_backtrace();
766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768. if ($sql) {
769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770. }
771.
772. throw new PrestaShopDatabaseException($this->getMsgError());
773. }
774. }
380. $this->result = $this->_query($sql);
381. }
382. }
383.
384. if (_PS_DEBUG_SQL_) {
385. $this->displayError($sql);
386. }
387.
388. return $this->result;
389. }
390.
Argument [0] SELECT * FROM `ps_currency` c ORDER BY `iso_code` ASC
608. }
609.
610. return $this->execute($sql, $use_cache);
611. }
612.
613. $this->result = $this->query($sql);
614.
615. if (!$this->result) {
616. $result = false;
617. } else {
618. if (!$array) {
Argument [0] SELECT * FROM `ps_currency` c ORDER BY `iso_code` ASC
690. * @throws PrestaShopDatabaseException
691. */
692. public static function findAllInstalled()
693. {
694. $currencies = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS(
695. 'SELECT * FROM `' . _DB_PREFIX_ . 'currency` c ORDER BY `iso_code` ASC'
696. );
697.
698. return $currencies;
699. }
700.
Argument [0] SELECT * FROM `ps_currency` c ORDER BY `iso_code` ASC
79. /**
80. * {@inheritdoc}
81. */
82. public function findAllInstalled()
83. {
84. return Currency::findAllInstalled();
85. }
86.
87. /**
88. * {@inheritdoc}
89. */
87. *
88. * @return string[]
89. */
90. public function getAllInstalledCurrencyIsoCodes()
91. {
92. $currencies = $this->dataProvider->findAllInstalled();
93. $currencyIsoCodes = array_column($currencies, 'iso_code');
94.
95. return $currencyIsoCodes;
96. }
97. }
92. /**
93. * {@inheritdoc}
94. */
95. public function getAllInstalledCurrenciesData($localeCode)
96. {
97. return $this->formatCurrenciesData($this->installedDataLayer->getAllInstalledCurrencyIsoCodes(), $localeCode);
98. }
99.
100. /**
101. * @param array $currencyCodes
102. * @param string $localeCode
82. /**
83. * {@inheritdoc}
84. */
85. public function getAllInstalledCurrencies($localeCode)
86. {
87. return $this->createCurrenciesFromData($this->dataSource->getAllInstalledCurrenciesData($localeCode));
88. }
89.
90. /**
91. * @param array $currenciesData
92. *
Argument [0] fr-FR
202. $cldrLocale = $this->cldrLocaleRepository->getLocale($localeCode);
203. if (null === $cldrLocale) {
204. throw new LocalizationException('CLDR locale not found for locale code "' . $localeCode . '"');
205. }
206.
207. $currencies = $this->currencyRepository->getAllInstalledCurrencies($localeCode);
208.
209. $priceSpecifications = new PriceSpecificationMap();
210. foreach ($currencies as $currency) {
211. // Build the spec
212. $thisPriceSpecification = (new SpecificationFactory())->buildPriceSpecification(
Argument [0] fr-FR
145. {
146. if (!isset($this->locales[$localeCode])) {
147. $this->locales[$localeCode] = new Locale(
148. $localeCode,
149. $this->getNumberSpecification($localeCode),
150. $this->getPriceSpecifications($localeCode),
151. new NumberFormatter($this->roundingMode, $this->numberingSystem)
152. );
153. }
154.
155. return $this->locales[$localeCode];
Argument [0] fr-FR
191. $this->container = $this->buildContainer();
192. }
193.
194. $localeRepo = $this->get(self::SERVICE_LOCALE_REPOSITORY);
195. $this->context->currentLocale = $localeRepo->getLocale(
196. $this->context->language->getLocale()
197. );
198.
199. Hook::exec(
200. 'actionControllerInitAfter',
201. [
Argument [0] fr-FR
278. return;
279. }
280.
281. self::$initialized = true;
282.
283. parent::init();
284.
285. // enable Symfony error handler if debug mode enabled
286. $this->initDebugguer();
287.
288. // If current URL use SSL, set it true (used a lot for module redirect)
87.
88. if (!Validate::isLoadedObject($this->category) || !$this->category->active) {
89. Tools::redirect('index.php?controller=404');
90. }
91.
92. parent::init();
93.
94. if (!$this->category->checkAccess($this->context->customer->id)) {
95. header('HTTP/1.1 403 Forbidden');
96. header('Status: 403 Forbidden');
97. $this->errors[] = $this->trans('You do not have access to this category.', [], 'Shop.Notifications.Error');
282. /**
283. * Starts the controller process (this method should not be overridden!).
284. */
285. public function run()
286. {
287. $this->init();
288. if ($this->checkAccess()) {
289. // setMedia MUST be called before postProcess
290. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
291. $this->setMedia();
292. }
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();