@@ -106,11 +106,11 @@ function editAction()
106
106
{
107
107
throw new Zend_Exception ("Please set the folderId. " );
108
108
}
109
- elseif ($ folder === false )
109
+ else if ($ folder === false )
110
110
{
111
111
throw new Zend_Exception ("The folder doesn t exist. " );
112
112
}
113
- elseif (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_WRITE ))
113
+ else if (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_WRITE ))
114
114
{
115
115
throw new Zend_Exception ("Permissions error. " );
116
116
}
@@ -164,11 +164,11 @@ public function viewAction()
164
164
{
165
165
throw new Zend_Exception ('Please set the folderId. ' );
166
166
}
167
- elseif ($ folder === false )
167
+ else if ($ folder === false )
168
168
{
169
169
throw new Zend_Exception ("The folder doesn't exist. " , 404 );
170
170
}
171
- elseif (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_READ ))
171
+ else if (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_READ ))
172
172
{
173
173
throw new Zend_Exception ('Invalid policy: no read access ' , 403 );
174
174
}
@@ -189,7 +189,7 @@ public function viewAction()
189
189
{
190
190
$ breadcrumbs [] = array ('type ' => 'community ' , 'object ' => $ this ->Folder ->getCommunity ($ parent ));
191
191
}
192
- elseif (strpos ($ parent ->getName (), 'user ' ) !== false && $ this ->Folder ->getUser ($ parent ) !== false )
192
+ else if (strpos ($ parent ->getName (), 'user ' ) !== false && $ this ->Folder ->getUser ($ parent ) !== false )
193
193
{
194
194
$ breadcrumbs [] = array ('type ' => 'user ' , 'object ' => $ this ->Folder ->getUser ($ parent ));
195
195
}
@@ -245,7 +245,7 @@ public function deletedialogAction()
245
245
{
246
246
throw new Zend_Exception ('Invalid folderId ' , 404 );
247
247
}
248
- elseif (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
248
+ else if (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
249
249
{
250
250
throw new Zend_Exception ('Admin permission required ' , 403 );
251
251
}
@@ -265,11 +265,11 @@ public function deleteAction()
265
265
{
266
266
throw new Zend_Exception ("Please set the folderId. " );
267
267
}
268
- elseif ($ folder === false )
268
+ else if ($ folder === false )
269
269
{
270
270
throw new Zend_Exception ("The folder doesn't exist. " );
271
271
}
272
- elseif (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
272
+ else if (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
273
273
{
274
274
throw new Zend_Exception ("Permissions error. " );
275
275
}
@@ -316,19 +316,19 @@ public function removeitemAction()
316
316
{
317
317
throw new Zend_Exception ("Please set the folderId. " );
318
318
}
319
- elseif ($ folder === false )
319
+ else if ($ folder === false )
320
320
{
321
321
throw new Zend_Exception ("The folder doesn't exist. " );
322
322
}
323
- elseif ($ item === false )
323
+ else if ($ item === false )
324
324
{
325
325
throw new Zend_Exception ("The item doesn't exist. " );
326
326
}
327
- elseif (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_WRITE ))
327
+ else if (!$ this ->Folder ->policyCheck ($ folder , $ this ->userSession ->Dao , MIDAS_POLICY_WRITE ))
328
328
{
329
329
throw new Zend_Exception ('Write permission on folder required ' );
330
330
}
331
- elseif (!$ this ->Item ->policyCheck ($ item , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
331
+ else if (!$ this ->Item ->policyCheck ($ item , $ this ->userSession ->Dao , MIDAS_POLICY_ADMIN ))
332
332
{
333
333
throw new Zend_Exception (MIDAS_ADMIN_PRIVILEGES_REQUIRED );
334
334
}
@@ -352,7 +352,7 @@ public function createfolderAction()
352
352
{
353
353
throw new Zend_Exception ("Please set the folderId. " );
354
354
}
355
- elseif ($ folder === false )
355
+ else if ($ folder === false )
356
356
{
357
357
throw new Zend_Exception ("The folder doesn't exist. " );
358
358
}
0 commit comments