Skip to content

Commit

Permalink
Fix deprecated functionality: preg_match(): passing null to parameter #2
Browse files Browse the repository at this point in the history
 ($subject) of type string is deprecated
  • Loading branch information
luigifab committed Dec 14, 2021
1 parent 274f65a commit c2e12d5
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,19 @@
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
*/
?>
<!-- <?php if($this->getTitle()): ?>
<h3><?php echo $this->getTitle() ?></h3>
<?php endif ?> -->
<?php if(!empty($tabs)): ?>
<ul id="<?php echo $this->getId() ?>" class="tabs-horiz">
<?php foreach ($tabs as $_tab): ?>
<li>
<a href="<?php echo $this->getTabUrl($_tab)?>" id="<?php echo $this->getTabId($_tab) ?>" title="<?php echo $this->getTabTitle($_tab) ?>" class="tab-item-link <?php echo $this->getTabClass($_tab) ?><?php if (preg_match('/\s?ajax\s?/', $this->getTabClass($_tab))) {?> notloaded<?php }?>">
<span><span class="changed" title="<?php echo Mage::helper('core')->quoteEscape($this->__('The information in this tab has been changed.')) ?>"></span><span class="error" title="<?php echo Mage::helper('core')->quoteEscape($this->__('This tab contains invalid data. Please solve the problem before saving.')) ?>"></span><?php echo $this->getTabLabel($_tab) ?></span>
</a>
<div id="<?php echo $this->getTabId($_tab) ?>_content" style="display:none"><?php echo $this->getTabContent($_tab) ?></div>
</li>
<?php endforeach ?>
</ul>
<script type="text/javascript">

<?php echo $this->getId() ?>JsTabs = new varienTabs('<?php echo $this->getId() ?>', '<?php echo $this->getDestElementId() ?>', '<?php echo $this->getActiveTabId() ?>', <?php echo $this->getAllShadowTabs()?>);
</script>
<?php if (!empty($tabs)): ?>
<ul id="<?php echo $this->getId() ?>" class="tabs-horiz">
<?php foreach ($tabs as $tab): ?>
<li>
<a href="<?php echo $this->getTabUrl($tab) ?>" id="<?php echo $this->getTabId($tab) ?>" title="<?php echo $this->getTabTitle($tab) ?>" class="tab-item-link <?php echo $class = $this->getTabClass($tab),((!empty($class) && preg_match('/\s?ajax\s?/', $class)) ? ' notloaded' : '') ?>">
<span><span class="changed" title="<?php echo Mage::helper('core')->quoteEscape($this->__('The information in this tab has been changed.')) ?>"></span><span class="error" title="<?php echo Mage::helper('core')->quoteEscape($this->__('This tab contains invalid data. Please solve the problem before saving.')) ?>"></span><?php echo $this->getTabLabel($tab) ?></span>
</a>
<div id="<?php echo $this->getTabId($tab) ?>_content" style="display:none"><?php echo $this->getTabContent($tab) ?></div>
</li>
<?php endforeach ?>
</ul>
<script type="text/javascript">
<?php echo $this->getId() ?>JsTabs = new varienTabs('<?php echo $this->getId() ?>', '<?php echo $this->getDestElementId() ?>', '<?php echo $this->getActiveTabId() ?>', <?php echo $this->getAllShadowTabs() ?>);
</script>
<?php endif ?>

0 comments on commit c2e12d5

Please sign in to comment.