]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-15488, fix flickr searching problem"
authordongsheng <dongsheng>
Mon, 20 Apr 2009 09:00:55 +0000 (09:00 +0000)
committerdongsheng <dongsheng>
Mon, 20 Apr 2009 09:00:55 +0000 (09:00 +0000)
repository/flickr_public/repository.class.php

index 579685254606a1a6961008f12126f2dd893b7d6b..ae9b7097b1679825e629bf281b3ee36a34ed45f3 100644 (file)
@@ -85,10 +85,6 @@ class repository_flickr_public extends repository {
             $SESSION->{$this->sess_account} = $account;
             $SESSION->{$this->sess_tag}  = $tag;
             $SESSION->{$this->sess_text} = $fulltext;
-            $response = $this->search($fulltext);
-            $response['search_result'] = true;
-            echo json_encode($response);
-            exit;
         }
     }
 
@@ -128,6 +124,7 @@ class repository_flickr_public extends repository {
 
             $ret['login'] = array($fulltext, $tag, $email_field);
             $ret['login_btn_label'] = get_string('search');
+            $ret['login_search_form'] = true;
             return $ret;
         }
     }