From: Eloi G. <ada...@us...> - 2011-01-02 23:34:34
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv17872/inc Modified Files: runtime_categorized.php runtime.php A_save.php runtime_chronological.php xmlrpc.php Log Message: + Assigning the return value of new by reference is deprecated in PHP 5. Index: xmlrpc.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/xmlrpc.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** xmlrpc.php 21 Nov 2008 06:13:14 -0000 1.11 --- xmlrpc.php 2 Jan 2011 23:34:23 -0000 1.12 *************** *** 334,338 **** $version_list = PHPWS_Article::get_version_ids($args[0]); $version_id = $version_list[0]; ! $version = & new Version('article', $version_id); $version->loadObject($article); $article->unserialize_sections(); --- 334,338 ---- $version_list = PHPWS_Article::get_version_ids($args[0]); $version_id = $version_list[0]; ! $version = new Version('article', $version_id); $version->loadObject($article); $article->unserialize_sections(); *************** *** 365,369 **** function metaWeblog_getRecentPosts($args) { ! $db = & new PHPWS_DB('article'); $db->addColumn('id'); $db->addWhere('sectioncount', '1'); --- 365,369 ---- function metaWeblog_getRecentPosts($args) { ! $db = new PHPWS_DB('article'); $db->addColumn('id'); $db->addWhere('sectioncount', '1'); *************** *** 397,401 **** function mt_getRecentPostTitles($args) { ! $db = & new PHPWS_DB('article'); $db->addColumn('id'); $db->addColumn('created_date'); --- 397,401 ---- function mt_getRecentPostTitles($args) { ! $db = new PHPWS_DB('article'); $db->addColumn('id'); $db->addColumn('created_date'); Index: runtime_chronological.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/runtime_chronological.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** runtime_chronological.php 21 Jan 2009 16:27:18 -0000 1.16 --- runtime_chronological.php 2 Jan 2011 23:34:23 -0000 1.17 *************** *** 36,40 **** for($i=0; $i < $num_rows; $i++) $queried[] = $result[$i]['key_id']; ! $db = & new PHPWS_DB('categories'); $db->addColumn('category_items.key_id'); $db->addColumn('categories.id'); --- 36,40 ---- for($i=0; $i < $num_rows; $i++) $queried[] = $result[$i]['key_id']; ! $db = new PHPWS_DB('categories'); $db->addColumn('category_items.key_id'); $db->addColumn('categories.id'); *************** *** 49,53 **** /* If not done already, develop this category's icon & link */ if (!isset($list[$cat_item['id']])) { ! $category = & new Category(); PHPWS_Core::plugObject($category, $cat_item); $list[$cat_item['id']]['cat_link'] = $category->getViewLink('article'); --- 49,53 ---- /* If not done already, develop this category's icon & link */ if (!isset($list[$cat_item['id']])) { ! $category = new Category(); PHPWS_Core::plugObject($category, $cat_item); $list[$cat_item['id']]['cat_link'] = $category->getViewLink('article'); *************** *** 82,86 **** if (count($result)) { ! $tpl = & new PHPWS_Template('article'); $status = $tpl->setFile('runtime_chronological.tpl'); $columns = $config['display_columns']; --- 82,86 ---- if (count($result)) { ! $tpl = new PHPWS_Template('article'); $status = $tpl->setFile('runtime_chronological.tpl'); $columns = $config['display_columns']; *************** *** 94,98 **** if(isset($result[$i + ($j * $rows)])) { $tpl->setCurrentBlock('list_columns'); ! $temp = & new PHPWS_Article($result[$i + ($j * $rows)]); $arr = $temp->_get_tags() + array('CELL_WIDTH' => $width); $tpl->setData($arr); --- 94,98 ---- if(isset($result[$i + ($j * $rows)])) { $tpl->setCurrentBlock('list_columns'); ! $temp = new PHPWS_Article($result[$i + ($j * $rows)]); $arr = $temp->_get_tags() + array('CELL_WIDTH' => $width); $tpl->setData($arr); Index: A_save.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/A_save.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** A_save.php 26 Jan 2009 03:14:07 -0000 1.24 --- A_save.php 2 Jan 2011 23:34:23 -0000 1.25 *************** *** 21,25 **** return false; ! $db = & new PHPWS_DB('article'); /* Process all sections */ --- 21,25 ---- return false; ! $db = new PHPWS_DB('article'); /* Process all sections */ *************** *** 139,143 **** /* Save the article in the version archives */ PHPWS_Core::initModClass('version', 'Version.php'); ! $version = & new Version('article'); $version->setSource($this); if (!empty($this->_version_id)) --- 139,143 ---- /* Save the article in the version archives */ PHPWS_Core::initModClass('version', 'Version.php'); ! $version = new Version('article'); $version->setSource($this); if (!empty($this->_version_id)) Index: runtime.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/runtime.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** runtime.php 21 Jan 2009 16:27:18 -0000 1.19 --- runtime.php 2 Jan 2011 23:34:23 -0000 1.20 *************** *** 18,22 **** /* Display the homepage articles */ ! $db = & new PHPWS_DB('article'); $db->addWhere('mainarticle', '1'); Key::restrictView($db, 'article'); --- 18,22 ---- /* Display the homepage articles */ ! $db = new PHPWS_DB('article'); $db->addWhere('mainarticle', '1'); Key::restrictView($db, 'article'); *************** *** 53,57 **** { /* Load all articles at once */ ! $db = & new PHPWS_DB('article'); $db->addColumn('id'); $db->addColumn('title'); --- 53,57 ---- { /* Load all articles at once */ ! $db = new PHPWS_DB('article'); $db->addColumn('id'); $db->addColumn('title'); Index: runtime_categorized.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/runtime_categorized.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** runtime_categorized.php 21 Jan 2009 16:27:18 -0000 1.13 --- runtime_categorized.php 2 Jan 2011 23:34:23 -0000 1.14 *************** *** 35,39 **** $content[] = $result; ! $category = & new Category($cat_id); $a = array('CATEGORY_NAME' => $category->getViewLink('article'), 'CATEGORY_DESCRIPTION' => $category->getDescription()); --- 35,39 ---- $content[] = $result; ! $category = new Category($cat_id); $a = array('CATEGORY_NAME' => $category->getViewLink('article'), 'CATEGORY_DESCRIPTION' => $category->getDescription()); *************** *** 61,65 **** if (count($content)) { ! $tpl = & new PHPWS_Template('article'); $status = $tpl->setFile('runtime_categorized.tpl'); $columns = $config['display_columns']; --- 61,65 ---- if (count($content)) { ! $tpl = new PHPWS_Template('article'); $status = $tpl->setFile('runtime_categorized.tpl'); $columns = $config['display_columns']; |