Changeset 4753
- Timestamp:
- 12/13/07 21:39:46 (11 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
blog/owner/entry/edit/item.php (modified) (3 diffs)
-
components/Needlworks.Database.php (modified) (1 diff)
-
lib/piece/owner/contentMenu.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/blog/owner/entry/edit/item.php
r4730 r4753 6 6 $IV = array( 7 7 'GET' => array( 8 'draft' => array('any', 'mandatory' => false),8 'draft' => array('any', 'mandatory' => false), 9 9 'popupEditor' => array('any', 'mandatory' => false), 10 'returnURL' => array('string', 'mandatory' => false) 10 'returnURL' => array('string', 'mandatory' => false), 11 'category' => array('int', 'default' => 0) 11 12 ), 12 13 'POST' => array( 13 'category' => array('int', 'default' => 0),14 'search' => array('string', 'default' => ''),14 'category' => array('int', 'default' => 0), 15 'search' => array('string', 'default' => ''), 15 16 'returnURL' => array('string', 'mandatory' => false) 16 17 ) … … 29 30 $suri['id'] = 0; 30 31 31 if (isset($_GET['draft'])) {32 if (isset($_GET['draft'])) { 32 33 $entry = getEntry(getBlogId(), $suri['id'], true); 33 34 } else { … … 37 38 respondErrorPage(_t('포스트 정보가 존재하지 않습니다.')); 38 39 $isKeyword = ($entry['category'] == -1); 40 } 41 42 if (defined('__TEXTCUBE_POST__') && isset($_GET['category'])) { 43 $entry['category'] = $_GET['category']; 39 44 } 40 45 -
trunk/components/Needlworks.Database.php
r4737 r4753 18 18 require_once ROOT.'/components/Needlworks.DBMS.MySQL.php'; 19 19 } 20 21 /* TableQuery */ 22 // class TableQuery will be depreacted after 1.6 tree. 23 // (Will be replaced to POD Framework) 20 24 21 25 class TableQuery { -
trunk/lib/piece/owner/contentMenu.php
r4715 r4753 1 1 <?php 2 /// Copyright (c) 2004-2007, Needlworks / Tatter Network Foundation 3 /// All rights reserved. Licensed under the GPL. 4 /// See the GNU General Public License for more details. (/doc/LICENSE, /doc/COPYRIGHT) 5 2 6 if(isset($blogMenu['topMenu'])) { 3 7 switch($blogMenu['topMenu']) { … … 132 136 $firstChildClass = ' firstChild'; 133 137 $submenuURL = null; 138 if (isset($_POST['category'])) $currentCategory = $_POST['category']; 139 else if (isset($_GET['category'])) $currentCategory = $_GET['category']; 140 else $currentCategory = null; 134 141 foreach($blogContentMenuItem as $contentMenuItem) { 135 142 $PostIdStr = null; … … 152 159 (isset($_GET['name']) && ('adminMenu?name='.$_GET['name'] == $contentMenuItem['menu'])) || 153 160 ($contentMenuItem['menu'] == 'trash' && strpos($blogMenu['contentMenu'],'trash') !== false) || 154 ($blogMenu['contentMenu'] == 'edit' && $contentMenuItem['menu'] == 'post')) ? " class=\"selected{$firstChildClass}\"" : '');?>><a href="<?php echo $blogURL.$contentMenuItem['link'].($service['useRewriteEngine'] ? '' : '/index.php');?>"><span class="text"><?php echo $contentMenuItem['title'];?></span></a></li> 161 ($blogMenu['contentMenu'] == 'edit' && $contentMenuItem['menu'] == 'post')) ? " class=\"selected{$firstChildClass}\"" : '');?>><a href="<?php 162 echo $blogURL. 163 $contentMenuItem['link']. 164 ($service['useRewriteEngine'] ? '' : '/index.php'). 165 ($contentMenuItem['menu'] == 'post' && isset($currentCategory) ? '?category='.$currentCategory : ''); 166 ?>"><span class="text"><?php echo $contentMenuItem['title'];?></span></a></li> 155 167 <?php 156 168 $firstChildClass = null;
