Browse Source

修正小于php7.2的错误

tags/6.0.3
llgoer 4 years ago
parent
commit
58e68a6fb9
3 changed files with 7 additions and 2 deletions
  1. +2
    -1
      dedebiz
  2. +5
    -0
      src/include/autoload.inc.php
  3. +0
    -1
      src/include/autoload7.inc.php

+ 2
- 1
dedebiz View File

@@ -156,7 +156,8 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) {
$templet = $row['templet'];
$templet = str_replace("{style}", $cfg_df_style, $templet);
$pv = new PartView();
$GLOBALS['_arclistEnv'] = 'index';
$GLOBALS['_arclistEnv'] = 'index';
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $templet);
$pv->SaveToHtml($homeFile);
DedeCli::write("Make index html successfull");


+ 5
- 0
src/include/autoload.inc.php View File

@@ -11,10 +11,15 @@ if(!defined('DEDEINC')) exit("Request Error!");
function __autoload($classname)
{
$classname = preg_replace("/[^0-9a-z_]/i", '', $classname);
$classname = strtolower($classname);
if( class_exists ( $classname ) )
{
return TRUE;
}
if (in_array($classname, array("archives","freelist","listview","partview","rssview",
"searchview","sglistview","sgpage","specview","taglist"))) {
$classname = "arc.".$classname;
}
$libclassfile = $classname.'.class.php';
if ( is_file ( DEDEINC.'/'.$libclassfile ) )
{


+ 0
- 1
src/include/autoload7.inc.php View File

@@ -20,7 +20,6 @@ function dede_autoloader($classname)
"searchview","sglistview","sgpage","specview","taglist"))) {
$classname = "arc.".$classname;
}
$libclassfile = $classname.'.class.php';
if ( is_file ( DEDEINC.'/'.$libclassfile ) )
{


Loading…
Cancel
Save