Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 14. november 2026

Rozdiely pre Metafox/functions.inc.php medzi verziami 1.24 a 1.25

verzia 1.24, 2006/07/09 09:26:05 verzia 1.25, 2006/07/20 09:48:21
Riadok 84  function ezin_get_special_tags_flags($st
Riadok 84  function ezin_get_special_tags_flags($st
   
 function ezin_handle_include(&$article_ar) /* {{{ */  function ezin_handle_include(&$article_ar) /* {{{ */
 {  {
         // TODO: this should be while() but more checks needed          // TODO: made INCLUDE works with ACCESS_KEY (not only ID)
         if (preg_match_all('|<include\s+([^>\s]+)>|si', $article_ar['article_bodytext'], $matches)) {          while (preg_match_all('|<include\s+([^>\s]+)>|si', $article_ar['article_bodytext'], $matches)) {
                 $matches = array_unique($matches[1]);                  $matches = array_unique($matches[1]);
                 if (count($matches) <= 0) {                  if (count($matches) <= 0) {
                         break;                          break;
Riadok 95  function ezin_handle_include(&$article_a
Riadok 95  function ezin_handle_include(&$article_a
                 foreach ($matches as $article_id) {                  foreach ($matches as $article_id) {
                         $subst_article = ezin_get_article($article_id);                          $subst_article = ezin_get_article($article_id);
                         $pattern[]     = '|<include\s+'.$article_id.'>|i';                          $pattern[]     = '|<include\s+'.$article_id.'>|i';
                         $replacement[] = $subst_article['article_bodytext'];                          $replacement[] = @$subst_article['article_bodytext'];
                         $article_ar['article_bodytext_flags'] .= $subst_article['article_bodytext_flags'];                          $article_ar['article_bodytext_flags'] .= @$subst_article['article_bodytext_flags'];
                 }                  }
                 $article_ar['article_bodytext'] = preg_replace($pattern, $replacement, $article_ar['article_bodytext']);                  $article_ar['article_bodytext'] = preg_replace($pattern, $replacement, $article_ar['article_bodytext']);
         }          }

Legend:
Odstranené z verzie1.24  
zmenené riadky
  Pridané vo verzii1.25

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok