summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorSam Tuke <sam@donttravelempty.com>2012-04-25 13:51:08 +0100
committerSam Tuke <sam@donttravelempty.com>2012-04-25 13:51:08 +0100
commit81f549baee2078b3d5ba037e921864337edc0ea2 (patch)
tree05fdc42be1d8e1364b25a0011caa261064a7c1fc /apps/files_versions
parent4795295fb16c61ff9f9c04f9570d963908d0b232 (diff)
downloadnextcloud-server-81f549baee2078b3d5ba037e921864337edc0ea2.tar.gz
nextcloud-server-81f549baee2078b3d5ba037e921864337edc0ea2.zip
made code a little more readable
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/history.php38
1 files changed, 19 insertions, 19 deletions
diff --git a/apps/files_versions/history.php b/apps/files_versions/history.php
index 6c7626ca4ed..7f03ce0e694 100644
--- a/apps/files_versions/history.php
+++ b/apps/files_versions/history.php
@@ -20,40 +20,40 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
*/
-require_once('../../lib/base.php');
+require_once( '../../lib/base.php' );
-OC_Util::checkLoggedIn();
+OC_Util::checkLoggedIn( );
-if (isset($_GET['path'])) {
+if ( isset( $_GET['path'] ) ) {
$path = $_GET['path'];
- $path = strip_tags($path);
+ $path = strip_tags( $path);
// roll back to old version if button clicked
- if(isset($_GET['revert'])) {
- \OCA_Versions\Storage::rollback($path,$_GET['revert']);
+ if( isset( $_GET['revert'] ) ) {
+ \OCA_Versions\Storage::rollback( $path, $_GET['revert'] );
}
// show the history only if there is something to show
- if(OCA_Versions\Storage::isversioned($path)) {
+ if( OCA_Versions\Storage::isversioned( $path) ) {
$count=5; //show the newest revisions
- $versions=OCA_Versions\Storage::getversions($path,$count);
+ $versions=OCA_Versions\Storage::getversions( $path, $count);
- $tmpl = new OC_Template('files_versions', 'history', 'user');
- $tmpl->assign('path', $path);
- $tmpl->assign('versions', array_reverse($versions));
- $tmpl->printPage();
+ $tmpl = new OC_Template( 'files_versions', 'history', 'user' );
+ $tmpl->assign( 'path', $path);
+ $tmpl->assign( 'versions', array_reverse( $versions) );
+ $tmpl->printPage( );
}else{
- $tmpl = new OC_Template('files_versions', 'history', 'user');
- $tmpl->assign('path', $path);
- $tmpl->assign('message', 'No old versions available');
- $tmpl->printPage();
+ $tmpl = new OC_Template( 'files_versions', 'history', 'user' );
+ $tmpl->assign( 'path', $path);
+ $tmpl->assign( 'message', 'No old versions available' );
+ $tmpl->printPage( );
}
}else{
- $tmpl = new OC_Template('files_versions', 'history', 'user');
- $tmpl->assign('message', 'No path specified');
- $tmpl->printPage();
+ $tmpl = new OC_Template( 'files_versions', 'history', 'user' );
+ $tmpl->assign( 'message', 'No path specified' );
+ $tmpl->printPage( );
}