diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-24 16:09:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-24 16:09:27 +0200 |
commit | b7aba15f179125455298aaee411864ebf4ed86f9 (patch) | |
tree | 781cd833dfb6fa18eeb89967f3094dcf0fa5a33e /lib/template.php | |
parent | 8d52fdb7faf4be4ed4282ecdd3e3a08af1fbf150 (diff) | |
download | nextcloud-server-b7aba15f179125455298aaee411864ebf4ed86f9.tar.gz nextcloud-server-b7aba15f179125455298aaee411864ebf4ed86f9.zip |
add search functionality, for now only searches files but plugins/apps can extend that
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/template.php b/lib/template.php index 75e4303ff6a..0d6776aa26d 100644 --- a/lib/template.php +++ b/lib/template.php @@ -190,6 +190,9 @@ class OC_TEMPLATE{ if( $this->renderas == "user" ) { $page = new OC_TEMPLATE( "core", "layout.user" ); + $search=new OC_TEMPLATE( 'core', 'part.searchbox'); + $search->assign('searchurl',OC_HELPER::linkTo( 'search', 'index.php' )); + $page->assign('searchbox', $search->fetchPage()); // Add menu data // Add navigation entry @@ -198,6 +201,9 @@ class OC_TEMPLATE{ elseif( $this->renderas == "admin" ) { $page = new OC_TEMPLATE( "core", "layout.admin" ); + $search=new OC_TEMPLATE( 'core', 'part.searchbox'); + $search->assign('searchurl',OC_HELPER::linkTo( 'search', 'index.php' )); + $page->assign('searchbox', $search->fetchPage()); // Add menu data if( OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){ $page->assign( "settingsnavigation", OC_APP::getSettingsNavigation()); |