Jump to content
php.lv forumi

Jamesons

Reģistrētie lietotāji
  • Posts

    85
  • Joined

  • Last visited

Posts posted by Jamesons

  1. Tātad instalēju WordPress blogu uz sava pc un izlec man šāds errors, kuru vispār pirmoreiz redzu.

     

    Fatal error: Declaration of Walker_Page::start_lvl() must be compatible with that of Walker::start_lvl() in C:\AppServ\www\wp-includes\classes.php on line 594

     

    Tātad ieeju C:\AppServ\www\wp-includes\classes.php on line 594

     

    un tur man ir šāds kods

     

    class Walker_PageDropdown extends Walker {
    var $tree_type = 'page';
    var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); //TODO: decouple this
    
    function start_el(&$output, $page, $depth, $args) {
    	$pad = str_repeat(' ', $depth * 3);
    
    	$output .= "\t<option value=\"$page->ID\"";
    	if ( $page->ID == $args['selected'] )
    		$output .= ' selected="selected"';
    	$output .= '>';
    	$title = wp_specialchars($page->post_title);
    	$output .= "$pad$title";
    	$output .= "</option>\n";
    }

     

    Kas tad man šeit ir jālabo?

     

    PS: Lietoju AppServ 2.6.0.

    PHP6

×
×
  • Create New...