1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

0.7 -> 0.8 upgrade fixes

This commit is contained in:
CaMer0n
2009-11-19 13:46:29 +00:00
parent c321774aa6
commit c40c26478d
3 changed files with 16 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
// $Id: img.bb,v 1.13 2009-09-05 08:23:55 e107steved Exp $ // $Id: img.bb,v 1.14 2009-11-19 13:46:18 e107coders Exp $
// General purpose image bbcode. As well as the obvious insertion of a picture: // General purpose image bbcode. As well as the obvious insertion of a picture:
// a) if filname begins with 'th_' or 'thumb_', creates link to main image opening in new window // a) if filname begins with 'th_' or 'thumb_', creates link to main image opening in new window
@@ -21,8 +21,8 @@ $replace = array(''', e_IMAGE_ABS, e_FILE_ABS, e_IMAGE_ABS, e_FILE_ABS);
$replaceInt = array(''', e_IMAGE, e_FILE, e_IMAGE, e_FILE); $replaceInt = array(''', e_IMAGE, e_FILE, e_IMAGE, e_FILE);
$intName = str_replace($search, $replaceInt, $code_text); // Server-relative file names $intName = str_replace($search, $replaceInt, $code_text); // Server-relative file names
unset($imgParms); unset($imgParms);
//$imgParms['class']="bbcode"; $imgParms['class']="bbcode floatnone"; // This will be overridden if a new class is specified
$imgParms['class']='floatnone'; // This will be overridden if a new class is specified
$imgParms['alt']=''; $imgParms['alt']='';
$code_text = str_replace($search, $replace, $code_text); $code_text = str_replace($search, $replace, $code_text);

View File

@@ -9,8 +9,8 @@
* Text processing and parsing functions * Text processing and parsing functions
* *
* $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $ * $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
* $Revision: 1.85 $ * $Revision: 1.86 $
* $Date: 2009-11-18 01:04:43 $ * $Date: 2009-11-19 13:46:24 $
* $Author: e107coders $ * $Author: e107coders $
* *
*/ */
@@ -1500,6 +1500,7 @@ class e_parse
*/ */
public function replaceConstants($text, $mode = '', $all = FALSE) public function replaceConstants($text, $mode = '', $all = FALSE)
{ {
if($mode != "") if($mode != "")
{ {
$e107 = e107::getInstance(); $e107 = e107::getInstance();
@@ -1599,6 +1600,12 @@ class e_parse
//if not already parsed by doReplace //if not already parsed by doReplace
$text = str_replace(array('{THEME}', '{THEME_ABS}'), '', $text); $text = str_replace(array('{THEME}', '{THEME_ABS}'), '', $text);
} }
else
{
$srch = array('{THEME}', '{THEME_ABS}');
$repl = array(THEME, THEME_ABS);
$text = str_replace($srch, $repl, $text);
}
return $text; return $text;
} }

View File

@@ -9,8 +9,8 @@
* *
* *
* $Source: /cvs_backup/e107_0.8/e107_plugins/banner/banner.php,v $ * $Source: /cvs_backup/e107_0.8/e107_plugins/banner/banner.php,v $
* $Revision: 1.2 $ * $Revision: 1.3 $
* $Date: 2009-09-18 22:20:39 $ * $Date: 2009-11-19 13:46:29 $
* $Author: e107coders $ * $Author: e107coders $
*/ */
@@ -24,7 +24,7 @@ if (!e107::isInstalled('banner'))
header("location:".e_BASE."index.php"); header("location:".e_BASE."index.php");
} }
e107::getLan(e_PLUGIN."banner/languages/".e_LANGUAGE."_banner.php"); e107::includeLan(e_PLUGIN."banner/languages/".e_LANGUAGE."_banner.php");
require_once(e_HANDLER."form_handler.php"); require_once(e_HANDLER."form_handler.php");
$rs = new form; $rs = new form;