Skip to content

Commit

Permalink
Attempt to fix issue #555
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jun 26, 2024
1 parent f223199 commit 356d71e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions views/yaf_view_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "yaf_namespace.h"
#include "yaf_exception.h"
#include "yaf_loader.h"
#include "yaf_request.h"
#include "yaf_view.h"

#if PHP_MAJOR_VERSION > 7
Expand Down Expand Up @@ -466,16 +465,11 @@ PHP_METHOD(yaf_view_simple, setScriptPath) {
}
/* }}} */

/** {{{ proto public Yaf_View_Simple::getScriptPath(Yaf_Request_Abstarct $request = NULL)
/** {{{ proto public Yaf_View_Simple::getScriptPath()
*/
PHP_METHOD(yaf_view_simple, getScriptPath) {
yaf_request_t *request = NULL;
yaf_view_object *view = Z_YAFVIEWOBJ_P(getThis());

if (zend_parse_parameters(ZEND_NUM_ARGS(), "|O!", &request, yaf_request_ce) == FAILURE) {
return;
}

if (view->tpl_dir) {
RETURN_STR_COPY(view->tpl_dir);
}
Expand Down

0 comments on commit 356d71e

Please sign in to comment.