Project

General

Profile

« Previous | Next » 

Revision 1769

Added by Dietmar about 12 years ago

  1. typofix in upgrade-script, fixed wrong count for language and modules folder
    2

View differences:

upgrade-script.php
576 576
	    echo ($database->query($sql)) ? " $OK<br />" : " $FAIL!<br />";
577 577
	}
578 578

  
579
    echo "<h4>Adding/updating fiekds on table mod_menu_link</h4>";
579
    echo "<h4>Adding/updating field on table mod_menu_link</h4>";
580 580
	/**********************************************************
581 581
     *  - Add field "redirect_type" to table "mod_menu_link"
582 582
     *  has to be moved later to upgrade.php in modul menu_link, because modul can be removed
......
592 592
		echo ($database->field_modify($table_name, $field_name, $description) ? " $OK<br />" : " $FAIL!<br />");
593 593
	}
594 594

  
595
    echo "<h4>Adding/updating fiekds on table pages</h4>";
595
    echo "<h4>Adding/updating field on table pages</h4>";
596 596
	/**********************************************************
597 597
	 *  - Add field "page_trail" to table "pages"
598 598
	 */
......
959 959
	// Load all modules
960 960
	if( ($handle = opendir(WB_PATH.'/modules/')) ) {
961 961
		while(false !== ($file = readdir($handle))) {
962
			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'admin.php' AND $file != 'index.php') {
962
			if($file != '' && substr($file, 0, 1) != '.' && is_dir(WB_PATH.'/modules/'.$file) ) {
963 963
                $iFound++;
964 964
				$iLoaded = load_module(WB_PATH.'/modules/'.$file ) ? $iLoaded+1 : $iLoaded;
965 965
			   // 	upgrade_module($file, true);
......
977 977
	if( ($handle = opendir(WB_PATH.'/templates/')) ) {
978 978
		while(false !== ($file = readdir($handle))) {
979 979
			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
980

  
980 981
                $iFound++;
981 982
				$iLoaded = (load_template(WB_PATH.'/templates/'.$file)==true) ? $iLoaded+1 : $iLoaded;
983

  
982 984
			}
983 985
		}
984 986
		closedir($handle);
......
992 994
	// Load all languages
993 995
	if( ($handle = opendir(WB_PATH.'/languages/')) ) {
994 996
		while(false !== ($file = readdir($handle))) {
995
			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
997
			if($file != '' AND (preg_match('#^([A-Z]{2}.php)#', basename($file)))) {
996 998
                $iFound++;
997 999
				$iLoaded = load_language(WB_PATH.'/languages/'.$file) ? $iLoaded+1 : $iLoaded;
998 1000
			}

Also available in: Unified diff