From: Andreas F. <ba...@ph...> - 2009-10-03 13:23:56
|
Author: bantu Date: Sat Oct 3 14:23:10 2009 New Revision: 10202 Log: Some nitpicks before we include this file in a final release. Modified: branches/phpBB-3_0_0/phpBB/feed.php Modified: branches/phpBB-3_0_0/phpBB/feed.php ============================================================================== *** branches/phpBB-3_0_0/phpBB/feed.php (original) --- branches/phpBB-3_0_0/phpBB/feed.php Sat Oct 3 14:23:10 2009 *************** *** 249,255 **** $content = str_replace('./', $board_url . '/', $content); // Remove "Select all" link and mouse events ! $content = str_replace('<a href="#" onclick="selectCode(this); return false;">' .$user->lang['SELECT_ALL_CODE'] . '</a>', '', $content); $content = preg_replace('#(onkeypress|onclick)="(.*?)"#si', '', $content); // Firefox does not support CSS for feeds, though --- 249,255 ---- $content = str_replace('./', $board_url . '/', $content); // Remove "Select all" link and mouse events ! $content = str_replace('<a href="#" onclick="selectCode(this); return false;">' . $user->lang['SELECT_ALL_CODE'] . '</a>', '', $content); $content = preg_replace('#(onkeypress|onclick)="(.*?)"#si', '', $content); // Firefox does not support CSS for feeds, though *************** *** 450,456 **** $this->sql = array(); // Set some values for pagination ! $this->num_items = $config['feed_limit']; $this->set_keys(); } --- 450,456 ---- $this->sql = array(); // Set some values for pagination ! $this->num_items = (int) $config['feed_limit']; $this->set_keys(); } *************** *** 828,834 **** $this->set('date', 'forum_last_post_time'); $this->set('options', 'forum_desc_options'); ! $this->num_items = $config['feed_overall_forums_limit']; } function open() --- 828,834 ---- $this->set('date', 'forum_last_post_time'); $this->set('options', 'forum_desc_options'); ! $this->num_items = (int) $config['feed_overall_forums_limit']; } function open() |