@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Convert phutil_render_tag(X, Y) to phutil_tag

Summary:
Created with spatch:

lang=diff
- phutil_render_tag
+ phutil_tag
(X, Y)

(and null manually)

Test Plan: Loaded homepage

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4500

vrana f8dbfdd5 8aea5cda

+48 -51
+2 -2
src/applications/differential/render/DifferentialChangesetTwoUpRenderer.php
··· 342 342 array( 343 343 'class' => 'differential-image-stage' 344 344 ), 345 - phutil_render_tag( 345 + phutil_tag( 346 346 'img', 347 347 array( 348 348 'src' => $old_file->getBestURI(), ··· 358 358 array( 359 359 'class' => 'differential-image-stage' 360 360 ), 361 - phutil_render_tag( 361 + phutil_tag( 362 362 'img', 363 363 array( 364 364 'src' => $new_file->getBestURI(),
+2 -3
src/applications/differential/view/DifferentialInlineCommentEditView.php
··· 79 79 $out = array(); 80 80 foreach ($this->inputs as $input) { 81 81 list($name, $value) = $input; 82 - $out[] = phutil_render_tag( 82 + $out[] = phutil_tag( 83 83 'input', 84 84 array( 85 85 'type' => 'hidden', 86 86 'name' => $name, 87 87 'value' => $value, 88 - ), 89 - null); 88 + )); 90 89 } 91 90 return implode('', $out); 92 91 }
+1 -1
src/applications/differential/view/DifferentialRevisionListView.php
··· 130 130 $src = '/rsrc/image/icon/fatcow/page_white_edit.png'; 131 131 $flag = 132 132 '<a href="/D'.$revision->getID().'#comment-preview">'. 133 - phutil_render_tag( 133 + phutil_tag( 134 134 'img', 135 135 array( 136 136 'src' => celerity_get_resource_uri($src),
+1 -1
src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php
··· 92 92 if ($max_id != $id) { 93 93 $uniq = celerity_generate_unique_node_id(); 94 94 $old_checked = ($this->selectedVersusDiffID == $id); 95 - $old = phutil_render_tag( 95 + $old = phutil_tag( 96 96 'input', 97 97 array( 98 98 'type' => 'radio',
+1 -1
src/applications/diffusion/controller/DiffusionBrowseFileController.php
··· 789 789 790 790 $properties->addProperty( 791 791 pht('Image'), 792 - phutil_render_tag( 792 + phutil_tag( 793 793 'img', 794 794 array( 795 795 'src' => $file_uri,
+1 -1
src/applications/directory/controller/PhabricatorDirectoryMainController.php
··· 301 301 ), 302 302 'Jump Nav User Guide'); 303 303 304 - $jump_input = phutil_render_tag( 304 + $jump_input = phutil_tag( 305 305 'input', 306 306 array( 307 307 'type' => 'text',
+1 -1
src/applications/files/controller/PhabricatorFileInfoController.php
··· 141 141 // TODO: Clean this up after Pholio (dark backgrounds, standardization, 142 142 // etc.) 143 143 144 - $image = phutil_render_tag( 144 + $image = phutil_tag( 145 145 'img', 146 146 array( 147 147 'src' => $file->getViewURI(),
+1 -1
src/applications/macro/controller/PhabricatorMacroViewController.php
··· 158 158 159 159 if ($file) { 160 160 $view->addTextContent( 161 - phutil_render_tag( 161 + phutil_tag( 162 162 'img', 163 163 array( 164 164 'src' => $file->getViewURI(),
+4 -6
src/applications/maniphest/controller/ManiphestBatchEditController.php
··· 79 79 80 80 foreach ($tasks as $task) { 81 81 $form->appendChild( 82 - phutil_render_tag( 82 + phutil_tag( 83 83 'input', 84 84 array( 85 85 'type' => 'hidden', 86 86 'name' => 'batch[]', 87 87 'value' => $task->getID(), 88 - ), 89 - null)); 88 + ))); 90 89 } 91 90 92 91 $form->appendChild( 93 - phutil_render_tag( 92 + phutil_tag( 94 93 'input', 95 94 array( 96 95 'type' => 'hidden', 97 96 'name' => 'actions', 98 97 'id' => 'batch-form-actions', 99 - ), 100 - null)); 98 + ))); 101 99 $form->appendChild('<p>These tasks will be edited:</p>'); 102 100 $form->appendChild($list); 103 101 $form->appendChild(
+2 -2
src/applications/maniphest/controller/ManiphestSavedQueryListController.php
··· 40 40 $default = $query; 41 41 } 42 42 $rows[] = array( 43 - phutil_render_tag( 43 + phutil_tag( 44 44 'input', 45 45 array( 46 46 'type' => 'radio', ··· 73 73 } 74 74 75 75 $rows[] = array( 76 - phutil_render_tag( 76 + phutil_tag( 77 77 'input', 78 78 array( 79 79 'type' => 'radio',
+1 -1
src/applications/phame/skins/PhameBasicBlogSkin.php
··· 104 104 105 105 $pager = $this->renderOlderPageLink().$this->renderNewerPageLink(); 106 106 if ($pager) { 107 - $pager = phutil_render_tag( 107 + $pager = phutil_tag( 108 108 'div', 109 109 array( 110 110 'class' => 'phame-pager',
+1 -1
src/applications/phame/skins/PhameBasicTemplateBlogSkin.php
··· 18 18 if (!preg_match('/.css$/', $path)) { 19 19 continue; 20 20 } 21 - $this->cssResources[] = phutil_render_tag( 21 + $this->cssResources[] = phutil_tag( 22 22 'link', 23 23 array( 24 24 'rel' => 'stylesheet',
+1 -1
src/applications/phame/view/PhamePostView.php
··· 201 201 202 202 $post = $this->getPost(); 203 203 204 - $disqus_thread = phutil_render_tag('div', 204 + $disqus_thread = phutil_tag('div', 205 205 array( 206 206 'id' => 'disqus_thread' 207 207 )
+1 -1
src/applications/phortune/stripe/view/PhortuneStripePaymentFormView.php
··· 106 106 ) 107 107 ) 108 108 ->appendChild( 109 - phutil_render_tag( 109 + phutil_tag( 110 110 'input', 111 111 array( 112 112 'hidden' => true,
+1 -1
src/applications/phpast/controller/PhabricatorXHPASTViewFrameController.php
··· 13 13 $id = $this->id; 14 14 15 15 return $this->buildStandardPageResponse( 16 - phutil_render_tag( 16 + phutil_tag( 17 17 'iframe', 18 18 array( 19 19 'src' => '/xhpast/frameset/'.$id.'/',
+1 -1
src/applications/project/controller/PhabricatorProjectProfileEditController.php
··· 200 200 id(new AphrontFormMarkupControl()) 201 201 ->setLabel('Profile Image') 202 202 ->setValue( 203 - phutil_render_tag( 203 + phutil_tag( 204 204 'img', 205 205 array( 206 206 'src' => $img_src,
+1 -1
src/applications/search/controller/PhabricatorSearchController.php
··· 145 145 ->setUser($user) 146 146 ->setAction('/search/') 147 147 ->appendChild( 148 - phutil_render_tag( 148 + phutil_tag( 149 149 'input', 150 150 array( 151 151 'type' => 'hidden',
+1 -1
src/applications/settings/panel/PhabricatorSettingsPanelProfile.php
··· 179 179 id(new AphrontFormMarkupControl()) 180 180 ->setLabel('Profile Image') 181 181 ->setValue( 182 - phutil_render_tag( 182 + phutil_tag( 183 183 'img', 184 184 array( 185 185 'src' => $img_src,
+3 -3
src/applications/slowvote/controller/PhabricatorSlowvotePollController.php
··· 261 261 $checked = null; 262 262 } 263 263 264 - $input = phutil_render_tag( 264 + $input = phutil_tag( 265 265 'input', 266 266 array( 267 267 'type' => 'radio', ··· 282 282 } 283 283 } 284 284 285 - $input = phutil_render_tag( 285 + $input = phutil_tag( 286 286 'input', 287 287 array( 288 288 'type' => 'checkbox', ··· 407 407 'href' => $handle->getURI(), 408 408 'class' => 'phabricator-slowvote-facepile', 409 409 ), 410 - phutil_render_tag( 410 + phutil_tag( 411 411 'img', 412 412 array( 413 413 'src' => $profile_image,
+1 -1
src/infrastructure/celerity/CelerityStaticResourceResponse.php
··· 106 106 $uri = PhabricatorEnv::getCDNURI($resource['uri']); 107 107 switch ($resource['type']) { 108 108 case 'css': 109 - return phutil_render_tag( 109 + return phutil_tag( 110 110 'link', 111 111 array( 112 112 'rel' => 'stylesheet',
+2 -2
src/infrastructure/javelin/markup.php
··· 46 46 47 47 function phabricator_render_form_magic(PhabricatorUser $user) { 48 48 return 49 - phutil_render_tag( 49 + phutil_tag( 50 50 'input', 51 51 array( 52 52 'type' => 'hidden', 53 53 'name' => AphrontRequest::getCSRFTokenName(), 54 54 'value' => $user->getCSRFToken(), 55 55 )). 56 - phutil_render_tag( 56 + phutil_tag( 57 57 'input', 58 58 array( 59 59 'type' => 'hidden',
+1 -1
src/infrastructure/markup/rule/PhabricatorRemarkupRuleEmbedFile.php
··· 108 108 } 109 109 110 110 require_celerity_resource('lightbox-attachment-css'); 111 - $img = phutil_render_tag('img', $data['attrs']); 111 + $img = phutil_tag('img', $data['attrs']); 112 112 113 113 $embed = javelin_render_tag( 114 114 'a',
+3 -3
src/infrastructure/markup/rule/PhabricatorRemarkupRuleImageMacro.php
··· 35 35 $src_uri = null; 36 36 } 37 37 38 - $img = phutil_render_tag( 38 + $img = phutil_tag( 39 39 'img', 40 40 array( 41 41 'src' => $src_uri, 42 42 'alt' => $matches[1], 43 - 'title' => $matches[1]), 44 - null); 43 + 'title' => $matches[1], 44 + )); 45 45 return $this->getEngine()->storeText($img); 46 46 } else { 47 47 return $matches[1];
+1 -1
src/view/control/AphrontAttachedFileView.php
··· 15 15 $file = $this->file; 16 16 $phid = $file->getPHID(); 17 17 18 - $thumb = phutil_render_tag( 18 + $thumb = phutil_tag( 19 19 'img', 20 20 array( 21 21 'src' => $file->getThumb60x45URI(),
+1 -1
src/view/control/AphrontTokenizerTemplateView.php
··· 75 75 'class' => 'jx-tokenizer-token', 76 76 ), 77 77 phutil_escape_html($value). 78 - phutil_render_tag( 78 + phutil_tag( 79 79 'input', 80 80 array( 81 81 'type' => 'hidden',
+1 -1
src/view/form/AphrontFormInsetView.php
··· 57 57 $hidden_inputs = array(); 58 58 foreach ($this->hidden as $inp) { 59 59 list($key, $value) = $inp; 60 - $hidden_inputs[] = phutil_render_tag( 60 + $hidden_inputs[] = phutil_tag( 61 61 'input', 62 62 array( 63 63 'type' => 'hidden',
+1 -1
src/view/form/AphrontFormView.php
··· 100 100 if ($value === null) { 101 101 continue; 102 102 } 103 - $inputs[] = phutil_render_tag( 103 + $inputs[] = phutil_tag( 104 104 'input', 105 105 array( 106 106 'type' => 'hidden',
+1 -1
src/view/form/control/AphrontFormCheckboxControl.php
··· 22 22 $rows = array(); 23 23 foreach ($this->boxes as $box) { 24 24 $id = celerity_generate_unique_node_id(); 25 - $checkbox = phutil_render_tag( 25 + $checkbox = phutil_tag( 26 26 'input', 27 27 array( 28 28 'id' => $id,
+1 -1
src/view/form/control/AphrontFormFileControl.php
··· 7 7 } 8 8 9 9 protected function renderInput() { 10 - return phutil_render_tag( 10 + return phutil_tag( 11 11 'input', 12 12 array( 13 13 'type' => 'file',
+2 -2
src/view/form/control/AphrontFormImageControl.php
··· 10 10 $id = celerity_generate_unique_node_id(); 11 11 12 12 return 13 - phutil_render_tag( 13 + phutil_tag( 14 14 'input', 15 15 array( 16 16 'type' => 'file', ··· 18 18 'class' => 'image', 19 19 )). 20 20 '<div style="clear: both;">'. 21 - phutil_render_tag( 21 + phutil_tag( 22 22 'input', 23 23 array( 24 24 'type' => 'checkbox',
+1 -1
src/view/form/control/AphrontFormPasswordControl.php
··· 7 7 } 8 8 9 9 protected function renderInput() { 10 - return phutil_render_tag( 10 + return phutil_tag( 11 11 'input', 12 12 array( 13 13 'type' => 'password',
+1 -1
src/view/form/control/AphrontFormRadioButtonControl.php
··· 22 22 $rows = array(); 23 23 foreach ($this->buttons as $button) { 24 24 $id = celerity_generate_unique_node_id(); 25 - $radio = phutil_render_tag( 25 + $radio = phutil_tag( 26 26 'input', 27 27 array( 28 28 'id' => $id,
+1 -1
src/view/layout/PhabricatorPinboardItemView.php
··· 48 48 'href' => $this->uri, 49 49 'class' => 'phabricator-pinboard-item-image-link', 50 50 ), 51 - phutil_render_tag( 51 + phutil_tag( 52 52 'img', 53 53 array( 54 54 'src' => $this->imageURI,
+1 -1
src/view/page/PhabricatorBarePageView.php
··· 66 66 67 67 $viewport_tag = null; 68 68 if ($this->getDeviceReady()) { 69 - $viewport_tag = phutil_render_tag( 69 + $viewport_tag = phutil_tag( 70 70 'meta', 71 71 array( 72 72 'name' => 'viewport',
+2 -2
src/view/page/menu/PhabricatorMainMenuSearchView.php
··· 23 23 $target_id = celerity_generate_unique_node_id(); 24 24 $search_id = $this->getID(); 25 25 26 - $input = phutil_render_tag( 26 + $input = phutil_tag( 27 27 'input', 28 28 array( 29 29 'type' => 'text', ··· 52 52 'placeholder' => PhabricatorSearchScope::getScopePlaceholder($scope), 53 53 )); 54 54 55 - $scope_input = phutil_render_tag( 55 + $scope_input = phutil_tag( 56 56 'input', 57 57 array( 58 58 'type' => 'hidden',