mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
planet addon, bookmark 애드온의 관리자 페이지에서의 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4842 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b7eaa3ed7b
commit
32dc218365
2 changed files with 4 additions and 6 deletions
|
|
@ -9,8 +9,9 @@
|
||||||
|
|
||||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
||||||
$config = Context::get('config');
|
$config = Context::get('config');
|
||||||
if($config->mid == 'planet'){
|
if($config && $config->mid == 'planet'){
|
||||||
$oPlanet = Context::get('planet');
|
$oPlanet = Context::get('planet');
|
||||||
|
if(!is_object($oPlanet)) return;
|
||||||
if($oPlanet->isMyPlanet()){
|
if($oPlanet->isMyPlanet()){
|
||||||
$oPlanetModel = &getModel('planet');
|
$oPlanetModel = &getModel('planet');
|
||||||
$countBookmark = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'bookmark');
|
$countBookmark = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'bookmark');
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,12 @@
|
||||||
* @author SOL군 (sol@ngleader.com)
|
* @author SOL군 (sol@ngleader.com)
|
||||||
* @brief
|
* @brief
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
if($called_position == 'after_module_proc' && Context::getResponseMethod()!="XMLRPC" && Context::getResponseMethod()!="JSON") {
|
||||||
$config = Context::get('config');
|
$config = Context::get('config');
|
||||||
|
|
||||||
//getTagSearchResultCount
|
if($config && $config->mid == 'planet'){
|
||||||
if($config->mid == 'planet'){
|
|
||||||
$oPlanet = Context::get('planet');
|
$oPlanet = Context::get('planet');
|
||||||
|
if(!is_object($oPlanet)) return;
|
||||||
if($oPlanet->isMyPlanet()){
|
if($oPlanet->isMyPlanet()){
|
||||||
$oPlanetModel = &getModel('planet');
|
$oPlanetModel = &getModel('planet');
|
||||||
$countTodo = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'todo');
|
$countTodo = $oPlanetModel->getTagSearchResultCount($oPlanet->getModuleSrl(),'todo');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue