Merge remote branch 'origin/core/1.1.2/maint' into core/master
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 16 Feb 2011 21:17:19 +0000 (22:17 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Wed, 16 Feb 2011 21:17:19 +0000 (22:17 +0100)
1  2 
classes/plpage.php

diff --combined classes/plpage.php
@@@ -132,7 -132,7 +132,7 @@@ abstract class PlPage extends Smart
          } elseif ($display == 'raw') {
              $this->_page_type = NO_SKIN;
          } elseif ($display == 'full') {
 -            $this->_page_typ = SKINNED;
 +            $this->_page_type = SKINNED;
          }
  
          if ($this->_page_type == SIMPLE) {
@@@ -453,7 -453,7 +453,7 @@@ function _to_globals($s) 
   * compilation plugin used to import $globals confing through #globals.foo.bar# directives
   */
  
- function at_to_globals($tpl_source, &$smarty)
+ function at_to_globals($tpl_source, $smarty)
  {
      return preg_replace('/#globals\.([a-zA-Z0-9_.]+?)#/e', '_to_globals(\'\\1\')', $tpl_source);
  }
  // }}}
  // {{{  function trimwhitespace
  
- function trimwhitespace($source, &$smarty)
+ function trimwhitespace($source, $smarty)
  {
      $tags = '(script|pre|textarea)';
      preg_match_all("!<$tags.*?>.*?</(\\1)>!ius", $source, $tagsmatches);
  // }}}
  // {{{ function wiki_include
  
- function wiki_include($source, &$smarty)
+ function wiki_include($source, $smarty)
  {
      global $globals;
      return preg_replace('/\{include( [^}]*)? wiki=([^} ]+)(.*?)\}/ui',
                          $source);
  }
  
- function core_include($source, &$smarty)
+ function core_include($source, $smarty)
  {
      global $globals;
      return preg_replace('/\{include( [^}]*)? core=([^} ]+)(.*?)\}/ui',
  // }}}
  //{{{ function hasPerm
  
- function if_rewrites($source, &$smarty)
+ function if_rewrites($source, $smarty)
  {
      $perms = 'isset($smarty.session.user|smarty:nodefaults) && $smarty.session.user';
      return preg_replace(array('/\{(else)?if([^}]*) (\!?)hasPerms?\(([^)]+)\)([^}]*)\}/',
  // }}}
  // {{{
  
- function form_force_encodings($source, &$smarty)
+ function form_force_encodings($source, $smarty)
  {
      return preg_replace('/<form[^\w]/',
                          '\0 accept-charset="utf-8" ',
@@@ -528,7 -528,7 +528,7 @@@ function _hide_email($source
          '//]]></script>';
  }
  
- function hide_emails($source, &$smarty)
+ function hide_emails($source, $smarty)
  {
      if (!strpos($source, '@')) {
          return $source;