News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1189362661:v:use_geshi-1:v:type-php

Started by aka, Sep 09, 2007, 06:31 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

aka

         array(
            'tag' => 'vers',
            'type' => 'unparsed_equals_content',
            'content' => '$1',
            'validate' => isset($disabled['vers']) ? null : create_function('&$tag, &$data, $disabled', '
               global $context;
               if (!empty($context[\'manual\'][\'version\']))
               {            
                  if ($context[\'manual\'][\'version\'] == 2 && $data[1] != 2)
                     $data = \'\';
                  elseif ($context[\'manual\'][\'version\'] == \'1.1\' && $data[1] != \'1.1\')
                     $data = \'\';
               }
            '),
         ),