Page MenuHomePhabricator

D18297.id44001.diff
No OneTemporary

D18297.id44001.diff

diff --git a/resources/builtin/projects/v3/contact.png b/resources/builtin/projects/v3/contact.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/gears.png b/resources/builtin/projects/v3/gears.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/gold.png b/resources/builtin/projects/v3/gold.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/home.png b/resources/builtin/projects/v3/home.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/manage.png b/resources/builtin/projects/v3/manage.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/silver.png b/resources/builtin/projects/v3/silver.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/support.png b/resources/builtin/projects/v3/support.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/resources/builtin/projects/v3/sword.png b/resources/builtin/projects/v3/sword.png
new file mode 100644
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
GIT binary patch
literal 0
Hc$@<O00001
literal 0
Hc$@<O00001
diff --git a/src/applications/project/controller/PhabricatorProjectEditPictureController.php b/src/applications/project/controller/PhabricatorProjectEditPictureController.php
--- a/src/applications/project/controller/PhabricatorProjectEditPictureController.php
+++ b/src/applications/project/controller/PhabricatorProjectEditPictureController.php
@@ -124,38 +124,16 @@
}
}
- $builtins = array(
- 'projects/v3/book.png',
- 'projects/v3/bug.png',
- 'projects/v3/calendar.png',
- 'projects/v3/clipboard.png',
- 'projects/v3/cloud.png',
- 'projects/v3/creditcard.png',
- 'projects/v3/database.png',
- 'projects/v3/desktop.png',
- 'projects/v3/experimental.png',
- 'projects/v3/flag.png',
- 'projects/v3/folder.png',
- 'projects/v3/lightbulb.png',
- 'projects/v3/lock.png',
- 'projects/v3/mail.png',
- 'projects/v3/marker.png',
- 'projects/v3/mobile.png',
- 'projects/v3/organization.png',
- 'projects/v3/people.png',
- 'projects/v3/piechart.png',
- 'projects/v3/robot.png',
- 'projects/v3/rocket.png',
- 'projects/v3/servers.png',
- 'projects/v3/sitemap.png',
- 'projects/v3/tag.png',
- 'projects/v3/trash.png',
- 'projects/v3/truck.png',
- 'projects/v3/umbrella.png',
- );
+ $root = dirname(phutil_get_library_root('phabricator'));
+ $root = $root.'/resources/builtin/projects/v3/';
+
+ $builtins = id(new FileFinder($root))
+ ->withType('f')
+ ->withFollowSymlinks(true)
+ ->find();
foreach ($builtins as $builtin) {
- $file = PhabricatorFile::loadBuiltin($viewer, $builtin);
+ $file = PhabricatorFile::loadBuiltin($viewer, 'projects/v3/'.$builtin);
$images[$file->getPHID()] = array(
'uri' => $file->getBestURI(),
'tip' => pht('Builtin Image'),

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 25, 8:21 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6739017
Default Alt Text
D18297.id44001.diff (3 KB)

Event Timeline