Ignore:
Timestamp:
Aug 7, 2013, 6:09:21 PM (11 years ago)
Author:
mistic100
Message:

fix lightbow conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/oAuth/include/public_events.inc.php

    r23815 r24142  
    11<?php
    22defined('OAUTH_PATH') or die('Hacking attempt!');
     3
     4function oauth_anti_lightbox($tpl_thumbnails_var)
     5{
     6  global $template, $page;
     7 
     8  if ($page['section'] == 'collections' && !empty($template->css_by_priority[0]))
     9  {
     10    foreach ($template->css_by_priority[0] as $file)
     11    {
     12      if (strpos($file[0], 'colorbox.css') !== false)
     13      {
     14        $template->assign('OAUTH_NO_LIGHTBOX', true);
     15        break;
     16      }
     17    }
     18  }
     19 
     20  return $tpl_thumbnails_var;
     21}
    322
    423/**
Note: See TracChangeset for help on using the changeset viewer.