Commit: dd1046d6f29cfcc5158042a04afeecc78eb1aaf6
Author: gwoo | Date: 2010-03-08 16:48:04 -0800
diff --git a/controllers/BrowserController.php b/controllers/BrowserController.php
old mode 100755
new mode 100644
index 9610e25..6c1b061
--- a/controllers/BrowserController.php
+++ b/controllers/BrowserController.php
@@ -35,16 +35,8 @@ class BrowserController extends \lithium\action\Controller {
* @return array
*/
public function index() {
- $pluginsDir = new DirectoryIterator(LITHIUM_APP_PATH . '/libraries/plugins');
$libraries = Libraries::get();
- $plugins = array();
-
- foreach ($pluginsDir as $plugin) {
- if ($plugin->isDir() && !$plugin->isDot()) {
- $plugins[$plugin->getPathName()] = $plugin->getFileName();
- }
- }
- return compact('plugins', 'libraries');
+ return compact('libraries');
}
/**
@@ -82,7 +74,7 @@ class BrowserController extends \lithium\action\Controller {
switch ($object['type']) {
case 'namespace':
- $path = '/' . join('/', (array)$this->request->params['args']);
+ $path = '/' . join('/', (array) $this->request->params['args']);
$searchOptions = array('namespaces' => true) + compact('path');
$object['children'] = array();
@@ -176,7 +168,7 @@ class BrowserController extends \lithium\action\Controller {
}
if (isset($object['info']['tags']['return'])) {
- list($type, $text) = explode(' ', $object['info']['tags']['return'], 2);
+ list($type, $text) = explode(' ', $object['info']['tags']['return'], 2) + array('', '');
$object['info']['return'] = compact('type', 'text');
$object['info']['return']['text'] = $this->_embed($object['info']['return']['text']);
}
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php
index b0bb4db..e09521a 100644
--- a/views/layouts/default.html.php
+++ b/views/layouts/default.html.php
@@ -27,7 +27,7 @@
if ($crumb['url']) {
echo $this->html->link($crumb['title'], $crumb['url']);
} else {
- echo $this->html->tag('span', $crumb['title']);
+ echo "<span>{$h($crumb['title'])}</span>";
}
?>
</li>
diff --git a/webroot/css/li3_docs.css b/webroot/css/li3_docs.css
index 20bba2f..9a7c5fa 100644
--- a/webroot/css/li3_docs.css
+++ b/webroot/css/li3_docs.css
@@ -6,6 +6,9 @@
-------------------------------------------------------------------------------------------------*/
/*--- This is the stylesheet for li3_docs ---*/
+.crumbs {
+ margin-left: 0;
+}
.crumbs li {
list-style-type: none;
display: inline;
@@ -24,13 +27,6 @@
font-style: oblique;
margin-right: 10px;
}
-.crumbs .type.namespace {
-}
-.crumbs .type.class {
-}
-.crumbs .type.method {
-}
-
.parameters ul {
margin-left: 1em;
}