title: Joomla 2.5 pagination override
body: <p>I have changed one function in core pagination.php in libraries/html folder like that</p>
  
  <pre><code>protected function _list_render($list)
     {  
  $stranky = JPagination::getPagesCounter();
  
        $html = '&lt;ul&gt;';
        $html .= '&lt;li class="pagination-prev"&gt;' . $list['previous']['data'] . '&lt;/li&gt;';
  
  
      $html .= '&lt;li&gt; &amp;nbsp; | '. $stranky .' |&amp;nbsp; &lt;/li&gt;';
  
        $html .= '&lt;li class="pagination-next"&gt;' . $list['next']['data'] . '&lt;/li&gt;';
        $html .= '&lt;/ul&gt;';
  
        return $html;
     }
  </code></pre>
  
  <p>This change works great but what i am trying to achieve is to have this code in override. so i put the same code in pagination.php in html folder in my template folder and change the name of the function to pagination_list_render($list)</p>
  
  <pre><code>function pagination_list_render($list)
     {  
  
  $stranky = JPagination::getPagesCounter();
  
  
        $html = '&lt;ul&gt;';
        $html .= '&lt;li class="pagination-prev"&gt;' . $list['previous']['data'] . '&lt;/li&gt;';
  
          $html .= '&lt;li&gt; &amp;nbsp; | '. $stranky .' |&amp;nbsp; &lt;/li&gt;';
  
        $html .= '&lt;li class="pagination-next"&gt;' . $list['next']['data'] . '&lt;/li&gt;';
        $html .= '&lt;/ul&gt;';
  
        return $html;
     }
  </code></pre>
  
  <p>But now it does not work anymore and whole page is broken.</p>
  
  <p>It seems that 
  $stranky = JPagination::getPagesCounter();
  is the problem.. in core file it works, in overriden file not.
  Any ideas?</p>