From: <ada...@us...> - 2003-08-06 02:26:36
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sc8-pr-cvs1:/tmp/cvs-serv18667/inc Modified Files: importPM.php Log Message: Section templates now have no spaces in the file name. The new files are copied in and the old files are deleted with the update. Before updating, users must make sure that they have access permissions for the /article/templates/section set to 777. The import script is also updated to relfect the new filenames. Index: importPM.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/importPM.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** importPM.php 9 Jul 2003 20:24:26 -0000 1.1 --- importPM.php 6 Aug 2003 02:26:33 -0000 1.2 *************** *** 59,75 **** if ($old_page->sections[$x]->template=='image_center.tpl') ! $current_section->template = 'Centered Image'; elseif ($old_page->sections[$x]->template=='image_left.tpl') ! $current_section->template = 'Image Block Left'; elseif ($old_page->sections[$x]->template=='image_right.tpl') ! $current_section->template = 'Image Block Right'; elseif ($old_page->sections[$x]->template=='subtitle_and_text.tpl') ! $current_section->template = 'No Image'; elseif ($old_page->sections[$x]->template=='text_only.tpl') ! $current_section->template = 'Text Only'; elseif ($old_page->sections[$x]->template=='date_info_and_print.tpl') $_SESSION['SES_ART_article']->template = 'Dated'; elseif ($old_page->sections[$x]->template=='default.tpl') ! $current_section->template = 'Centered Image'; else $current_section->template = str_replace(".tpl", "", $old_page->sections[$x]->template); --- 59,75 ---- if ($old_page->sections[$x]->template=='image_center.tpl') ! $current_section->template = 'Centered_Image'; elseif ($old_page->sections[$x]->template=='image_left.tpl') ! $current_section->template = 'Image_Block_Left'; elseif ($old_page->sections[$x]->template=='image_right.tpl') ! $current_section->template = 'Image_Block_Right'; elseif ($old_page->sections[$x]->template=='subtitle_and_text.tpl') ! $current_section->template = 'No_Images'; elseif ($old_page->sections[$x]->template=='text_only.tpl') ! $current_section->template = 'Text_Only'; elseif ($old_page->sections[$x]->template=='date_info_and_print.tpl') $_SESSION['SES_ART_article']->template = 'Dated'; elseif ($old_page->sections[$x]->template=='default.tpl') ! $current_section->template = 'Centered_Image'; else $current_section->template = str_replace(".tpl", "", $old_page->sections[$x]->template); |